libcoro  1.0
Coroutine support library for C++20

◆ thread_pool() [1/2]

template<typename CondVar >
static auto coro::scheduler_t< CondVar >::thread_pool ( std::shared_ptr< coro::thread_pool pool)
inlinestatic

Attach a thread pool to the scheduler.

Parameters
poolshared pointer to an existing thread pool
Returns
function object, which can be pased to run() or start()
See also
run, start

Definition at line 177 of file scheduler.h.