FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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.

    Source

    get_awaiter

    fn get_awaiter(self: &Self) -> SchedulerOperationAwaiter
    

    The awaiter of the operation (GetAwaiter), which .await uses; each awaiter schedules the continuation once.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone
    • IntoFuture

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.