Trait task_executor::SpawnExt
source · [−]pub trait SpawnExt: Future {
fn spawn(self, exec: &Executor) -> Spawner<'_, Self>ⓘNotable traits for Spawner<'_, Item>impl<Item> Future for Spawner<'_, Item>where
Item: Future + Send + 'static,
Item::Output: Send + 'static, type Output = Result<(), Error<Item>>;
where
Self: Sized + Send + 'static,
Self::Output: Send + 'static,
{ ... }
}Provided Methods
sourcefn spawn(self, exec: &Executor) -> Spawner<'_, Self>ⓘNotable traits for Spawner<'_, Item>
fn spawn(self, exec: &Executor) -> Spawner<'_, Self>ⓘNotable traits for Spawner<'_, Item>impl<Item> Future for Spawner<'_, Item>where
Item: Future + Send + 'static,
Item::Output: Send + 'static, type Output = Result<(), Error<Item>>;where
Self: Sized + Send + 'static,
Self::Output: Send + 'static,
Item: Future + Send + 'static,
Item::Output: Send + 'static, type Output = Result<(), Error<Item>>;