Trait async_scoped::spawner::Spawner
source · pub unsafe trait Spawner<T> {
type FutureOutput;
type SpawnHandle: Future<Output = Self::FutureOutput> + Send;
// Required method
fn spawn<F: Future<Output = T> + Send + 'static>(
&self,
f: F
) -> Self::SpawnHandle;
}
Required Associated Types§
type FutureOutput
type SpawnHandle: Future<Output = Self::FutureOutput> + Send
Required Methods§
fn spawn<F: Future<Output = T> + Send + 'static>( &self, f: F ) -> Self::SpawnHandle
Object Safety§
This trait is not object safe.