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