libcoro  1.0
Coroutine support library for C++20

◆ await_suspend()

template<typename T >
std::coroutine_handle coro::future< T >::await_suspend ( std::coroutine_handle<>  h)
inlinenoexcept

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 753 of file future.h.