referrerpolicy=no-referrer-when-downgrade

Function malus::shared::launch_processing_task

source ·
pub(crate) fn launch_processing_task<X, F, U, Q, S>(
    spawner: &S,
    queue: Q,
    action: F,
)
where F: Fn(X) -> U + Send + 'static, U: Future<Output = ()> + Send + 'static, Q: Stream<Item = X> + Send + 'static, X: Send, S: 'static + SpawnNamed + Clone + Unpin,
Expand description

Launch a service task for each item in the provided queue.