Trait async_executors::iface::LocalSpawnHandle
source · [−]pub trait LocalSpawnHandle<Out: 'static> {
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>;
}Expand description
This is similar to SpawnHandle except that it allows spawning !Send futures. Please see
the docs on SpawnHandle.
Required Methods
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
fn spawn_handle_local_obj(
&self,
future: LocalFutureObj<'static, Out>
) -> Result<JoinHandle<Out>, SpawnError>
Spawn a future and return a JoinHandle that can be awaited for the output of the future.