pub fn with_current_thread<F, T>(f: F) -> T
where
    F: FnOnce(&Thread) -> T,
{
    with_core_scheduler(|s| s.with_current_thread(f))
}
/// Execute something using the current thread reference.
Execute something using the current thread reference.
Execute something using the current thread reference .
pub fn with_current_thread<F, T>(f: F) -> T
where
    F: FnOnce(&Thread) -> T,
{
    with_core_scheduler(|s| s.with_current_thread(f))
}
pub fn with_current_thread < F , T > ( f : F ) -> T where F : FnOnce ( & Thread ) -> T , { with_core_scheduler ( | s | s . with_current_thread ( f ) ) }
Execute something using the current thread reference.
Execute something using the current thread reference .
f
F
f
F