pub fn with<R>(f: impl FnOnce(CriticalSection<'_>) -> R) -> RExpand description
Run f with interrupts masked, then restore the previous state.
Keep f short: VBlank and every other interrupt wait until it returns.
pub fn with<R>(f: impl FnOnce(CriticalSection<'_>) -> R) -> RRun f with interrupts masked, then restore the previous state.
Keep f short: VBlank and every other interrupt wait until it returns.