pub fn current_preemption_pending() -> Result<bool, CpuLocalError>Expand description
Tests the current execution context’s advisory preemption-pending state.
This is an architecture-local safe-point query. It neither publishes nor
consumes external work. A false result is only a snapshot; a later
interrupt may publish work immediately after the observation.