std::execut...:let_stopped(3)

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

okay so bestie, welcome to the C++ Standard Libary manual πŸ’– the page is std::execut...:let_stopped(3) β€” yes, the title really is that chopped-looking std::execut...:let_stopped(3), and we're about to make it make sense. no cap.

πŸŽ€ NAME πŸŽ€

std::execution::let_stopped - std::execution::let_stopped (it's giving "name so nice they said it twice" ✨)

✨ Synopsis ✨

Defined in header <execution> πŸ¦‹

          execution::sender auto let_stopped(

              execution::sender auto input,    (since C++26)
              std::invocable auto function

          );

πŸ¦‹ Parameters πŸ¦‹

  • input β€” the sender that, once it's stopped, sends the "stop token" to execute the function πŸ’…
  • function β€” the invocable to be called with errors in case an error occurs by the input sender 🫢

🌈 Return value 🌈

Returns a sender describing the task graph described by the input sender, with an added node invoked when the "stopped" signal is sent. periodt πŸ”₯


kisses bestie 😘 this one's sourced from http://cppreference.com, dated 2024.06.10 β€” catch you in the next manpage, mwah πŸŽ€πŸ’œ

πŸ“¦ where this page comes from