pub fn without_interrupts<F, R>(f: F) -> Rwhere F: FnOnce() -> R,
Execute a closure with interrupts disabled
Returns the result of the closure.