pub fn free<F, R>(f: F) -> Rwhere
F: FnOnce() -> R,Expand description
Execute closure f in an interrupt-free context.
This method does not synchronise multiple cores, so it is not suitable for
using as a critical section. See the critical-section crate for a
cross-platform way to enter a critical section which provides a
CriticalSection token.