FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    spawn_local_on

    function · ferroui-system · v0.5.0

    fn spawn_local_on<F>(future: F, schedule: std::sync::Arc<dyn Schedule>, first_poll: super::schedule::FirstPoll) -> super::join::JoinHandle<<F as >::Output>
    where F: Future + 'static,
          <F as >::Output: 'static
    

    Runs future as a task of the current thread whose polls run on schedule, and gives its handle. Every wake, from any thread, queues one poll on the schedule; the first poll runs inside this call or is queued as well (first_poll).

    View source

    Availability

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