Template Function concore::v1::set_value

Function Documentation

template<typename Receiver, typename ...Vs>
void concore::v1::set_value(Receiver &&r, Vs&&... vs)

Customization point object that can be used to set values to receivers.

This is called by a sender whenever the sender has finished work and produces some values. This can be called even if the sender doesn’t have any values to send to the receiver.

Parameters
  • r: The receiver object that is signaled about sender’s success

  • vs: The values sent by the sender

The Receiver type should model concepts receiver and receiver_of<Vs...>.

See

set_done(), set_error(), receiver, receiver_of