[][src]Trait async_executors::LocalSpawnHandleExt

pub trait LocalSpawnHandleExt<Out: 'static>: LocalSpawnHandle<Out> {
    fn spawn_handle_local(
        &self,
        future: impl Future<Output = Out> + 'static
    ) -> Result<JoinHandle<Out>, SpawnError>; }

Let's you spawn a !Send future and get a JoinHandle to await the output of a future.

Required methods

fn spawn_handle_local(
    &self,
    future: impl Future<Output = Out> + 'static
) -> Result<JoinHandle<Out>, SpawnError>

Convenience trait for passing in a generic future to LocalSpawnHandle. Much akin to LocalSpawn and LocalSpawnExt in the futures library.

Loading content...

Implementors

impl<T: ?Sized, Out> LocalSpawnHandleExt<Out> for T where
    T: LocalSpawnHandle<Out>,
    Out: 'static, 
[src]

Loading content...