libcoro  1.0
Coroutine support library for C++20

◆ scheduler_t() [2/2]

template<typename CondVar >
template<std::convertible_to< CondVar > CondVarCfg>
coro::scheduler_t< CondVar >::scheduler_t ( CondVarCfg &&  cfg)
inlineexplicit

initialize the scheduler. It is not started, you must start it manually

The scheduler in this state can be used for scheduling, however no awaiting coroutine is awaken until the scheduler is started

Parameters
cfgCondVar configuration
See also
start, run

Definition at line 51 of file scheduler.h.