std::coroutine_handle<Promise>::done
Min standard notice:
Checks if a suspended coroutine is suspended at its final suspend point.
# Declarations
Member of other specializations
bool done() const;
(since C++20)
Member of specialization std::coroutine_handle<std::noop_coroutine_promise>
constexpr bool done() const noexcept;
(since C++20)
# Notes
A no-op coroutine is never considered to be suspended at its final suspend point.
A coroutine with promise object p is considered to be suspended at its final suspend point only if, let e be the result of p.final_suspend(), e.await_ready() returns false. In particular, if p.final_suspend() returns std::suspend_never, then done() never returns true.
# Example
This section is incompleteReason: no example