Skip to main content

spawn_per_thread

Function spawn_per_thread 

Source
pub fn spawn_per_thread(
    addr: &str,
    router: Router,
    cfg: PerThreadConfig,
) -> Result<(Vec<JoinHandle<()>>, PerThreadShutdown), Error>
Available on crate feature per-thread only.
Expand description

Starts workers and returns their thread handles and the trigger that stops them.