std::execution::upon_error(3)
π NAME π
okay so bestie, this is the page for std::execution::upon_error from the C++ Standard Libary manual. The NAME line is literally std::execution::upon_error - std::execution::upon_error, which is giving βI have arrived and I am the moment.β π
β¨
β¨ Synopsis β¨
Defined in header <execution>:
execution::sender auto upon_error(
execution::sender auto input, (since C++26)
std::invocable<errors-sent-by(input)...> function
);
this one is since C++26, so mark your calendar, queen. ποΈπ
π Parameters π
inputβ a sender which, once an error occurs, sends the errors tofunction. itβs the sender with the tea. βοΈfunctionβ an invocable to be called with errors in case an error occurs byinputsender. so wheninputgoes oopsie,functionhandles the receipts. π§Ύ
π₯ Return value π₯
Returns a sender describing the task graph described by the input sender, with an added node of invoking the provided function with the errors sent by the input sender as arguments (in case of an error). periodt. ππ
mwah π source: http://cppreference.com, version/date: 2024.06.10, page: std::execution::upon_error(3). byeee π«Άπ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms