axtask

Function sleep

Source
pub fn sleep(dur: Duration)
Expand description

Current task is going to sleep for the given duration.

If the feature irq is not enabled, it uses busy-wait instead.