[]Trait bastion::io::LocalAgnostikExecutor

pub trait LocalAgnostikExecutor: AgnostikExecutor {
    fn spawn_local<F>(&self, future: F) -> JoinHandle<<F as Future>::Output>

Important traits for JoinHandle<R>

impl<R> Future for JoinHandle<R> where
    R: 'static + Send
type Output = R;

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

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

Required methods

fn spawn_local<F>(&self, future: F) -> JoinHandle<<F as Future>::Output>

Important traits for JoinHandle<R>

impl<R> Future for JoinHandle<R> where
    R: 'static + Send
type Output = R;
where
    F: Future + 'static,
    <F as Future>::Output: 'static, 

Spawns a future that doesn't implement Send.

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

Loading content...

Implementors

Loading content...