pub fn suspend_on<F: Future>(future: F) -> F::OutputExpand description
Await from native code. Outside a coroutine this preserves task::block_on behavior. No heap allocation occurs here. The future and output stay on the native stack. Do not call this from a future’s poll method: poll methods must return Pending. Do not call it while holding a critical section: the interrupt mask is not switched with the stack, so the executor would run with interrupts masked.