pub fn with_core_scheduler<F, T>(f: F) -> T
where
    F: FnOnce(&Scheduler) -> T,
{
    f(&SCHEDULER.try_get().expect("core scheduler"))
}
/// Execute something using this core-local scheduler.
Execute something using this core-local scheduler.
Execute something using this core - local scheduler .
pub fn with_core_scheduler<F, T>(f: F) -> T
where
    F: FnOnce(&Scheduler) -> T,
{
    f(&SCHEDULER.try_get().expect("core scheduler"))
}
pub fn with_core_scheduler < F , T > ( f : F ) -> T where F : FnOnce ( & Scheduler ) -> T , { f ( & SCHEDULER . try_get ( ) . expect ( " " ) ) }
Execute something using this core-local scheduler.
Execute something using this core - local scheduler .
f
F
f
F