pub fn lock_scheduler<Traits: PortInstance>() -> impl Sized
Expand description

Temporarily lock the scheduler, disabling preemption.

All operating system and port functions will be unavailable until the lock is relinquished.