Namespaces
Variants
Actions

std::execution::stopped_as_error

From cppreference.com
< cpp‎ | execution
 
C++
 
Execution control library
Defined in header <execution>
template< std::move_constructible Error >
execution::sender auto stopped_as_error( execution::sender auto snd, Error err );
(since C++26)

[edit] Parameters

snd - input sender of which the stopped channel is mapped into err
err - error to which the stop channel is mapped into

[edit] Return value

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

[edit] Example

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant