dpp::detail::coroutine::promise_t< void >
coroutine.h
std::exception_ptr std::exception_ptr dpp::detail::coroutine::promise_t< void >::exception exception dpp::detail::coroutine::promise_t< void >::exception {nullptr}

Pointer to an uncaught exception thrown by the coroutine.

std_coroutine::coroutine_handle std_coroutine::coroutine_handle dpp::detail::coroutine::promise_t< void >::parent parent dpp::detail::coroutine::promise_t< void >::parent {nullptr}

Handle of the coroutine co_await-ing this coroutine.

std::optional< void > std::optional<void> dpp::detail::coroutine::promise_t< void >::result result dpp::detail::coroutine::promise_t< void >::result

Return value of the coroutine.

final_awaiter< void > final_awaiter< void > dpp::detail::coroutine::promise_t< void >::final_suspend () const noexcept final_suspend dpp::detail::coroutine::promise_t< void >::final_suspend

Function called by the standard library when reaching the end of a coroutine.

final_awaiter<R> Resumes any coroutine co_await-ing on this

dpp::coroutine< void > dpp::coroutine< void > dpp::detail::coroutine::promise_t< void >::get_return_object () get_return_object dpp::detail::coroutine::promise_t< void >::get_return_object

Function called to get the coroutine object.

std_coroutine::suspend_always std_coroutine::suspend_always dpp::detail::coroutine::promise_t< void >::initial_suspend () const noexcept initial_suspend dpp::detail::coroutine::promise_t< void >::initial_suspend

Function called by the standard library when the coroutine start.

std::suspend_always Always suspend at the start, for a lazy start

void void dpp::detail::coroutine::promise_t< void >::return_value (void &&expr) return_value dpp::detail::coroutine::promise_t< void >::return_value void && expr

Function called by the standard library when the coroutine co_returns a value.

Stores the value internally to hand to the caller when it resumes.

expr

The value given to co_return

void void dpp::detail::coroutine::promise_t< void >::return_void () const noexcept return_void dpp::detail::coroutine::promise_t< void >::return_void

Function called when co_return is used.

void void dpp::detail::coroutine::promise_t< void >::unhandled_exception () noexcept unhandled_exception dpp::detail::coroutine::promise_t< void >::unhandled_exception

Function called when an exception escapes the coroutine.

Stores the exception to throw to the co_await-er

Struct returned by a coroutine's final_suspend, resumes the continuation.

dpp::detail::coroutine::promise_t< R >
dpp::detail::coroutine::promise_t< void >
< void >
dpp::detail::coroutine::promise_t< R >
parent
result
exception
dpp::detail::coroutine::promise_t< void >
parent
exception
< void >
exception_ptr
optional< R >
coroutine_handle
- dpp::detail::coroutine::promise_t< void >
  exception
- dpp::detail::coroutine::promise_t< void >
  final_suspend
- dpp::detail::coroutine::promise_t< void >
  get_return_object
- dpp::detail::coroutine::promise_t< void >
  initial_suspend
- dpp::detail::coroutine::promise_t< void >
  parent
- dpp::detail::coroutine::promise_t< void >
  result
- dpp::detail::coroutine::promise_t< void >
  return_value
- dpp::detail::coroutine::promise_t< void >
  return_void
- dpp::detail::coroutine::promise_t< void >
  unhandled_exception