pub struct CurrentTask;Expand description
Helper methods to be performed on the task that is currently executing.
Implementations§
Source§impl CurrentTask
impl CurrentTask
Sourcepub fn delay<D: DurationTicks>(delay: D)
pub fn delay<D: DurationTicks>(delay: D)
Delay the execution of the current task.
pub fn suspend()
Sourcepub fn take_notification<D: DurationTicks>(clear: bool, wait_for: D) -> u32
pub fn take_notification<D: DurationTicks>(clear: bool, wait_for: D) -> u32
Take the notification and either clear the notification value or decrement it by one.
Sourcepub fn get_stack_high_water_mark() -> u32
pub fn get_stack_high_water_mark() -> u32
Get the minimum amount of stack that was ever left on the current task.