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.