#include <promise.h>
◆ PromiseCore_
◆ SharedCore_
◆ Coroutine() [1/3]
353:
core_{makeRefCounted<PromiseCore_>()} {}
SharedCore_ core_
Definition promise.h:382
◆ Coroutine() [2/3]
◆ Coroutine() [3/3]
◆ ~Coroutine()
359 {
360 if (
core_ !=
nullptr) {
362 }
363 }
virtual void delRef()
Definition internal_utils.h:117
◆ final_suspend()
Part of the coroutine protocol: nothing happens upon the final suspension point (after co_return
).
◆ get_return_object()
Part of the coroutine protocol.
366{
return Promise<void>{
core_}; }
◆ initial_suspend()
Part of the coroutine protocol: uvco
coroutines always run until the first suspension point.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ return_void()
Part of the coroutine protocol: resumes an awaiting coroutine, if there is one.
101 {
104}
void resume()
See PromiseCore::resume.
Definition promise_core.cc:32
bool ready_
Definition promise_core.h:226
◆ unhandled_exception()
Part of the coroutine protocol: store exception in core and resume awaiting coroutine.
106 {
109}
void except(std::exception_ptr exc)
See PromiseCore::except.
Definition promise_core.cc:56
◆ core_
The documentation for this class was generated from the following files: