std::coroutine_handle<Promise>::promise
Min standard notice:
Obtains a reference to the promise object.
# Declarations
Member of the primary template
Promise& promise() const;
(since C++20)
Member of specialization std::coroutine_handle<std::noop_coroutine_promise>
std::noop_coroutine_promise& promise() const noexcept;
(since C++20)
# Return value
A reference to the promise object.
# Notes
The promise object of a no-op coroutine is not destroyed as long as there is some std::noop_coroutine_handle referring to the coroutine.