Trait task_exec_queue::SpawnDefaultExt
source · [−]pub trait SpawnDefaultExt: Future {
fn spawn(self) -> Spawner<'static, Self, Sender<((), TaskType)>, (), ()>ⓘNotable traits for Spawner<'_, Item, Tx, G, D>impl<Item, Tx, G, D> Future for Spawner<'_, Item, Tx, G, D>where
Item: Future + Send + 'static,
Item::Output: Send + 'static,
Tx: Clone + Unpin + Sink<(D, TaskType)> + Send + Sync + 'static,
G: Hash + Eq + Clone + Debug + Send + Sync + 'static, type Output = Result<(), Error<Item>>;
where
Self: Sized + Send + 'static,
Self::Output: Send + 'static,
{ ... }
}
Provided Methods
fn spawn(self) -> Spawner<'static, Self, Sender<((), TaskType)>, (), ()>ⓘNotable traits for Spawner<'_, Item, Tx, G, D>impl<Item, Tx, G, D> Future for Spawner<'_, Item, Tx, G, D>where
Item: Future + Send + 'static,
Item::Output: Send + 'static,
Tx: Clone + Unpin + Sink<(D, TaskType)> + Send + Sync + 'static,
G: Hash + Eq + Clone + Debug + Send + Sync + 'static, type Output = Result<(), Error<Item>>;
where
Self: Sized + Send + 'static,
Self::Output: Send + 'static,
Item: Future + Send + 'static,
Item::Output: Send + 'static,
Tx: Clone + Unpin + Sink<(D, TaskType)> + Send + Sync + 'static,
G: Hash + Eq + Clone + Debug + Send + Sync + 'static, type Output = Result<(), Error<Item>>;