SchedulerOperation
struct · ferroui-reactive · v0.5.0
struct SchedulerOperation
An operation that an asynchronous body awaits to run its continuation on a scheduler
(SchedulerOperation), made by yield_ and sleep of
SchedulerExt. Awaiting it (.await, through its
get_awaiter) schedules the rest of the body on the scheduler, which
resumes it there; the operation ends with the error Canceled when its token is cancelled.
Nothing is scheduled until it is awaited.
Members
configure_await
fn configure_await(self: &Self, continue_on_captured_context: bool) -> SchedulerOperation
The operation, whose continuation is posted to the synchronization context of the awaiting
code when continue_on_captured_context is true (ConfigureAwait(bool); false by
default): the context that is current when the continuation is given, if there is one.
get_awaiter
fn get_awaiter(self: &Self) -> SchedulerOperationAwaiter
The awaiter of the operation (GetAwaiter), which .await uses; each awaiter schedules the
continuation once.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedCloneIntoFuture
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.