Skip to main content

spawn_on_each

Function spawn_on_each 

Source
pub fn spawn_on_each<F>(future: impl Fn() -> F) -> Vec<JoinHandle<F::Output>>
where F: Future + Send + 'static, F::Output: Send + 'static,
Expand description

Spawn a copy of a task on each local runtime.

Use this to place a server listener on each of your thread local threads.