std::execution::stopped_as_error - cppreference.com (original) (raw)

[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