Skip to main content

OnWakeOps

Trait OnWakeOps 

Source
pub trait OnWakeOps: Send + Sync {
    // Required method
    fn on_wake(&self, current_task: &CurrentTask, baton_lease: &NullableHandle);
}
Expand description

Called when a wake happens resulting from a timer going off.

Required Methods§

Source

fn on_wake(&self, current_task: &CurrentTask, baton_lease: &NullableHandle)

Called on wake events.

Must not block.

§Args
  • current_task: the currently active task
  • baton_lease: the wake lease is provided if on_wake has critical work to do and needs to prevent suspend.

Implementors§