std::execut...ed_as_error(3)

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

🌸 NAME 🌸

okay so bestie, this is std::execut...ed_as_error(3) from the C++ Standard Library manual β€” and it's literally all about std::execution::stopped_as_error 🫢

std::execution::stopped_as_error β€” std::execution::stopped_as_error


✨ Synopsis ✨

Defined in header <execution> πŸŽ€

template<move_constructible Error>

execution::sender auto stopped_as_error(
    execution::sender auto snd,           (since C++26)
    Error err

);

she's giving C++26, periodt πŸ”₯

πŸ’… Parameters πŸ’…

  • snd β€” the input sender whose stopped channel gets mapped into err πŸ’Œ
  • err β€” the error that the stop channel gets mapped into 🎯

🌈 Return value 🌈

Returns a sender that maps the stopped channel to an error of err ✨


and that's the whole vibe, bestie πŸ’– source/version: cppreference.com, dated 2024.06.10 β€” mwah, slay, go map those stopped channels πŸ¦‹πŸ’…πŸ‘‘

πŸ“¦ where this page comes from