libcoro  1.0
Coroutine support library for C++20

◆ await_suspend()

template<typename T >
bool coro::shared_future< T >::await_suspend ( std::coroutine_handle<>  h)
inline

co_await support, called with suspended coroutine

the function registers coroutine to be awaken once the future is resolved. It is registered as an awaiter

Parameters
hhandle of suspended coroutine waiting for result
Returns
handle of coroutine to wakeup. This can be for example deferred evaluation if it is registered as a coroutine. The called must resume the coroutine. function returns std::noop_coroutine if there is no such coroutine

Definition at line 1644 of file future.h.