pub fn spawn_scoped_thread<'scope, 'env, F, T>(
scope: &'scope Scope<'scope, 'env>,
name: &str,
f: F,
) -> ScopedJoinHandle<'scope, T>Expand description
Spawns a scoped thread on the selected blocking backend.
This is the scoped version of spawn_thread, for use with thread::scope, with the same
Tokio context rules: native OS threads enter the captured handle, while DST logical threads
share the context entered around the entire [reth_concurrency::sync::Runtime::run] call.