std::execution::stopped_as_error

Header: <execution>

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

# Declarations

template< std::move_constructible Error >
execution::sender auto stopped_as_error( execution::sender auto snd, Error err );

(since C++26)

# Parameters

# Return value

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

# Example

This section is incompleteReason: no example