Template Struct as_receiver¶
Defined in File as_receiver.hpp
Struct Documentation¶
-
template<typename
F>
structconcore::v1::as_receiver¶ Wrapper that transforms a functor into a receiver.
This will implement the operations specific to a receiver given a functor. The receiver will call the functor whenever
set_value() is called. It will not do anything on set_done() and it will terminate the program if set_error() is called.- Template Parameters
F: The type of the functor
This types models the
receiver_of<>concept