folly::coro::ExtendedCoroutineHandle

Extended coroutine_handle<void> assuming the handle is a pointer.

Synopsis

Declared in <folly/coro/Coroutine.h>

class ExtendedCoroutineHandle;

Types

NameDescription
PromiseBase Type-erased base storing the error-handle callback for a coroutine promise.

Type Aliases

NameDescription
ErrorHandle A handle to resume paired with its active async stack frame.

Member Functions

NameDescription
ExtendedCoroutineHandle [constructor]Constructors
destroy Destroys the referenced coroutine.
getErrorHandle Returns the handle and stack frame to resume with the given error.
getHandle Returns the underlying basic coroutine handle.
resume Resumes the referenced coroutine.
operator bool Returns whether this handle refers to a coroutine.

Protected Types

NameDescription
PrivateTag Passkey guarding access to getPromiseBase and the extended-handle protocol.

Friends

NameDescription
folly::coro::ExtendedCoroutinePromiseCrtpCRTP base letting a promise expose a more efficient error-resumption path.