Caller-owned coroutine task returning a plain SC::Result. More...
#include <Await.h>
Classes | |
| struct | Promise |
| Coroutine promise implementation used by AwaitTask. More... | |
Public Types | |
| using | promise_type = Promise |
| using | Handle = AwaitCoroutineTypedHandle<Promise> |
Public Member Functions | |
| AwaitTask (Handle newHandle) | |
| AwaitTask (const AwaitTask &)=delete | |
| AwaitTask & | operator= (const AwaitTask &)=delete |
| AwaitTask (AwaitTask &&other) noexcept | |
| AwaitTask & | operator= (AwaitTask &&other) noexcept |
| bool | isValid () const |
| bool | isStarted () const |
| bool | isCompleted () const |
| bool | isActive () const |
| bool | isCancellationRequested () const |
| Result | result () const |
| Result | cancel (AwaitEventLoop &await) |
| bool | await_ready () const |
| bool | await_suspend (Handle continuation) |
| Result | await_resume () const |
Caller-owned coroutine task returning a plain SC::Result.