FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    context_schedule

    function · ferroui-system · v0.5.0

    fn context_schedule(context: std::sync::Arc<dyn SynchronizationContext>) -> std::sync::Arc<dyn Schedule>
    

    context as a Schedule: its work is posted to the context (post, and post_local for Schedule::schedule_local), and two adapters of the same context are the same schedule (Schedule::identity). For code that still has a context, where a schedule is taken now.

    View source

    Deprecated since 0.5.0. implement ferroui_system::task::Schedule instead of SynchronizationContext

    Availability

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