libcoro  1.0
Coroutine support library for C++20

◆ sleep_until()

template<typename CondVar >
future<void> coro::scheduler_t< CondVar >::sleep_until ( std::chrono::system_clock::time_point  tp,
ident_t  ident = nullptr 
)
inline

sleep until specified time point

Parameters
tptime point
identoptional identification. You can use any pointer as identification. The pointer is dereferrenced
Returns
future which becomes resolved at specified time point. You just need to co_await on it

Definition at line 66 of file scheduler.h.

+ Here is the caller graph for this function: