pub fn with_current<R>(f: impl FnOnce(&mut Thread) -> R) -> R
Run a function f with current thread as an argument.
f