Template Function concore::v1::connect

Function Documentation

template<typename Sender, receiver Receiver>
auto concore::v1::connect(Sender &&snd, Receiver &&rcv)

Connect a sender with a receiver, returning an async operation object.

The type of the

rcv parameter must model the receiver concept. Usually, the snd parameter will model the sender and sender_to<Receiver> concepts.
Parameters
  • snd: The sender object, that triggers the work

  • rcv: 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);

See

receiver, sender, sender_to, operation_state