pub fn scope_if<R>(interrupt: Option<&Interrupt>, f: impl FnOnce() -> R) -> R
scope when interrupt is Some, otherwise run f under whatever is already active.
scope
interrupt
Some
f