std::execution::stopped_as_error
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Defined in header
<execution>
template< std::move_constructible Error >
execution::sender auto stopped_as_error( execution::sender auto snd, Error err );
(since C++26)
execution::sender auto stopped_as_error( execution::sender auto snd, Error err );
[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
This section is incomplete
Reason: no example
Reason: no example