libcoro  1.0
Coroutine support library for C++20

◆ run() [3/4]

template<typename CondVar >
template<typename T >
decltype(auto) coro::scheduler_t< CondVar >::run ( future< T > &  fut)
inline

run the scheduler in signle thread mode, stop when future is ready

Parameters
futreference to future, which is awaited
Returns
return value of the future

Definition at line 143 of file scheduler.h.