[−][src]Trait async_executors::LocalSpawnHandleExt
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>
&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.
Implementors
impl<T: ?Sized, Out> LocalSpawnHandleExt<Out> for T where
T: LocalSpawnHandle<Out>,
Out: 'static,
[src]
T: LocalSpawnHandle<Out>,
Out: 'static,
fn spawn_handle_local(
&self,
future: impl Future<Output = Out> + 'static
) -> Result<JoinHandle<Out>, SpawnError>
[src]
&self,
future: impl Future<Output = Out> + 'static
) -> Result<JoinHandle<Out>, SpawnError>