std::execution::upon_stopped

Header: <execution>

Returns a sender describing the task graph described by the input sender, with an added node of invoking the provided function in case the “stopped” signal is sent to the input sender.

# Declarations

execution::sender auto upon_stopped( execution::sender auto input,
std::invocable auto function );

(since C++26)

# Parameters

# Return value

Returns a sender describing the task graph described by the input sender, with an added node of invoking the provided function in case the “stopped” signal is sent to the input sender.

# Example

This section is incompleteReason: no example