Template Function concore::v1::connect¶
Defined in File execution.hpp
Function Documentation¶
-
template<typename
Sender, receiverReceiver>
autoconcore::v1::connect(Sender &&snd, Receiver &&rcv)¶ Connect a sender with a receiver, returning an async operation object.
The type of the
rcvparameter must model the receiver concept. Usually, thesndparameter will model the sender andsender_to<Receiver>concepts.- Parameters
snd: The sender object, that triggers the workrcv: The receiver object that receives the results of the work
The resulting type should model the operation_state concept.
Usage example:
auto op = concore::connect(snd, rcv); // later concore::start(op);