logo

Trait bastion::io::prelude::LocalAgnostikExecutor[]

pub trait LocalAgnostikExecutor: AgnostikExecutor {
    fn spawn_local<F>(&self, future: F) -> JoinHandle<<F as Future>::Output>
Notable traits for JoinHandle<R>
impl<R> Future for JoinHandle<R> where
    R: 'static + Send
type Output = R;

    where
        F: 'static + Future,
        <F as Future>::Output: 'static
; }
Expand description

This trait represents an executor that is capable of spawning futures onto the same thread.

Required methods

Spawns a future that doesn’t implement Send.

The spawned future will be executed on the same thread that called spawn_local.

Implementors