Template Function concore::v1::set_error

Function Documentation

template<typename Receiver, typename Err>
void concore::v1::set_error(Receiver &&r, Err &&e)

Customization point object that can be used to notify receivers of errors.

This is called by a sender whenever the sender has an error to report to the sender. Sending an error means that the sender is done processing; it will not call

set_value() and set_done().
Parameters
  • r: The receiver object that is signaled about sender’s error

  • e: The error to be to the receiver

The Receiver type should model concept receiver<E>.

See

set_value(), set_done(), receiver