FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CurrentThreadScheduler

    struct · ferroui-reactive · v0.5.0

    struct CurrentThreadScheduler
    

    Queues work on the current thread (CurrentThreadScheduler): the first work runs at once, and work scheduled while it runs is queued and runs after it, by due time and then in the order it was scheduled (the trampoline). Delayed work blocks the thread until it is due.

    View source

    Members

    instance

    fn instance() -> Rc<dyn IScheduler>
    

    The scheduler (CurrentThreadScheduler.Instance).

    Source

    is_schedule_required

    fn is_schedule_required() -> bool
    

    Whether the caller has to schedule its work to keep the order of the trampoline: true when no work of the scheduler is running on the thread (IsScheduleRequired).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • IScheduler

    Availability

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