Template Function concore::v1::schedule¶
Defined in File execution.hpp
Function Documentation¶
-
template<typename
Scheduler>
autoconcore::v1::schedule(Scheduler &&sched)¶ Transforms a scheduler (an execution context) into a single-shot sender.
The return type of the operation must model the
sender concept.- Parameters
sched: The scheduler object
The availability of this operation for a given type makes the type model the scheduler concept.
Usage example:
sender auto snd = schedule(sched);