dpp::coroutine::awaiter
coroutine & coroutine& dpp::coroutine< R >::awaiter::coro coro dpp::coroutine::awaiter::coro

Reference to the coroutine object being awaited.

bool bool dpp::coroutine< R >::awaiter::await_ready () const await_ready dpp::coroutine::awaiter::await_ready

First function called by the standard library when the coroutine is co_await-ed.

Do not call this manually, use the co_await keyword instead.

invalid_operation_exception

if the coroutine is empty or finished.

bool Whether the coroutine is done

R R dpp::coroutine< R >::awaiter::await_resume () await_resume dpp::coroutine::awaiter::await_resume

Final function called by the standard library when the coroutine is co_await-ed.

Pops the coroutine's result and returns it.

Do not call this manually, use the co_await keyword instead.

typename T
detail::coroutine::handle_t< R > detail::coroutine::handle_t< R > dpp::coroutine< R >::awaiter::await_suspend (detail::std_coroutine::coroutine_handle< T > caller) noexcept await_suspend dpp::coroutine::awaiter::await_suspend detail::std_coroutine::coroutine_handle< T > caller

Second function called by the standard library when the coroutine is co_await-ed.

Stores the calling coroutine in the promise to resume when this coroutine suspends.

Do not call this manually, use the co_await keyword instead.

caller

The calling coroutine, now suspended

dpp::basic_awaitable< Derived >
dpp::basic_awaitable< coroutine< R > >
< coroutine< R > >
dpp::coroutine< R >
dpp::coroutine< R >::awaiter
coro
- dpp::coroutine::awaiter
  await_ready
- dpp::coroutine::awaiter
  await_resume
- dpp::coroutine::awaiter
  await_suspend
- dpp::coroutine::awaiter
  coro