std::execution::upon_error(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 to function. it’s the sender with the tea. β˜•οΈ
  • function β€” an invocable to be called with errors in case an error occurs by input sender. so when input goes oopsie, function handles 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