Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_kernel
  5. kernel
  6. cancel_and_consume_timer

cancel_and_consume_timer

Function cancel_and_consume_timer 

Source
pub unsafe fn cancel_and_consume_timer<K: Kernel>(
    kernel: K,
    timer: NonNull<Timer<K>>,
)
Expand description

§Safety

timer must point to a valid TimerCallback object which is in the timer queue.