A wrapper for std::coroutine_handle that assumes unique ownership of the underlying PromiseType. This is an internal type and not part of the public pw_async2 API.
This type will destroy() the underlying promise in its destructor, or when Release() is called.
Public Member Functions | |
| constexpr | OwningCoroutineHandle (std::nullptr_t) |
| OwningCoroutineHandle (std::coroutine_handle< PromiseType > &&promise_handle) | |
Take ownership of promise_handle. | |
| OwningCoroutineHandle (OwningCoroutineHandle &&other) | |
| OwningCoroutineHandle & | operator= (OwningCoroutineHandle &&other) |
| bool | IsValid () const |
| PromiseType & | promise () const |
| bool | done () const |
| void | resume () |
| void | Release () |