Template Function concore::v1::submit

Function Documentation

template<sender Sender, receiver Receiver>
void concore::v1::submit(Sender &&snd, Receiver &&rcv)

Submit work from a sender, by combining it with a receiver.

The

sender_to<Sender, Receiver> concept must hold.
Parameters
  • snd: The sender object, that triggers the work

  • rcv: The receiver object that receives the results of the work

If there is no submit() customization point defined for the given Sender object (taking a Receiver object), then this will fall back to calling concore::connect().

Usage example:

submit(snd, rcv);

See

connect()