FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ScheduledAction

    type alias · ferroui-reactive · v0.5.0

    type ScheduledAction = Box<dyn FnOnce(&std::rc::Rc<dyn IScheduler>) -> std::rc::Rc<dyn IDisposable>>
    

    The work a scheduler runs: it receives the scheduler it runs on (which the work may schedule more work on, now or later) and returns the disposable that cancels what it started (Func<IScheduler, TState, IDisposable>; the state of upstream is what the closure captures).

    View source

    Availability

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