Skip to main content

LocalTaskSpawner

Trait LocalTaskSpawner 

Source
pub trait LocalTaskSpawner {
    // Required method
    fn spawn_local<F>(&self, fut: F) -> LocalTaskHandle<F::Output>
       where F: Future + 'static,
             F::Output: Send + 'static;
}
Expand description

Spawn a local (not Send) future.

Required Methods§

Source

fn spawn_local<F>(&self, fut: F) -> LocalTaskHandle<F::Output>
where F: Future + 'static, F::Output: Send + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§