nCine::Task::task_promise struct

Public functions

auto value() -> auto
auto initial_suspend() -> auto
auto final_suspend() -> auto noexcept
void return_value(T t)
auto get_return_object() -> Task<T>
void unhandled_exception()
void rethrow_if_unhandled_exception()

Public variables

std::optional<T> m_value
std::coroutine_handle<promise_type> m_inner_handler
std::coroutine_handle<promise_type> m_outer_handler