pub fn spawn_named<F, T, N: Into<String>>(name: N, f: F) -> JoinHandle<T>Expand description
Spawn a new named thread.
Sets the OS thread name and tracks the thread in active_named_thread_count.
The counter is decremented automatically when f returns.
ยงPanics
Panics if the OS refuses to create the thread.