SchedulerOperationAwaiter
struct · ferroui-reactive · v0.5.0
struct SchedulerOperationAwaiter
The awaiter of a SchedulerOperation (SchedulerOperationAwaiter): the members the await
of C# calls, and the Future that .await polls.
Members
is_completed
fn is_completed(self: &Self) -> bool
Whether the operation has ended: false unless its token is cancelled (IsCompleted).
get_result
fn get_result(self: &Self) -> Result<(), ObservableError>
The outcome of the operation: a cancellation (Canceled) when its token is cancelled
(GetResult, which throws OperationCanceledException).
on_completed
fn on_completed(self: &Self, continuation: impl FnOnce() -> () + 'static)
Schedules continuation on the scheduler of the operation (OnCompleted); the cancellation
of the token runs it at once instead, disposing what was scheduled. When the operation was
configured to continue on the captured context, the continuation is posted to the current
synchronization context of the thread, if there is one, when it runs.
Panics
When the awaiter was given a continuation already (InvalidOperationException).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTaskObservableExt<T>Borrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyIntoFutureToOwnedCloneFuture
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.