[−][src]Trait futures_util::task::LocalSpawnExt
Extension trait for LocalSpawn
.
Provided methods
fn spawn_local<Fut>(&mut self, future: Fut) -> Result<(), SpawnError> where
Fut: Future<Output = ()> + 'static,
[+]
Fut: Future<Output = ()> + 'static,
fn spawn_local_with_handle<Fut>(
&mut self,
future: Fut
) -> Result<RemoteHandle<Fut::Output>, SpawnError> where
Fut: Future + 'static,
[+]
&mut self,
future: Fut
) -> Result<RemoteHandle<Fut::Output>, SpawnError> where
Fut: Future + 'static,
Implementors
impl<Sp: ?Sized> LocalSpawnExt for Sp where
Sp: LocalSpawn,
[src][−]
Sp: LocalSpawn,
fn spawn_local<Fut>(&mut self, future: Fut) -> Result<(), SpawnError> where
Fut: Future<Output = ()> + 'static,
[src]
Fut: Future<Output = ()> + 'static,
fn spawn_local_with_handle<Fut>(
&mut self,
future: Fut
) -> Result<RemoteHandle<Fut::Output>, SpawnError> where
Fut: Future + 'static,
[src]
&mut self,
future: Fut
) -> Result<RemoteHandle<Fut::Output>, SpawnError> where
Fut: Future + 'static,