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_timer

cancel_timer

Function cancel_timer 

Source
pub unsafe fn cancel_timer<K: Kernel>(
    kernel: K,
    timer: NonNull<Timer<K>>,
) -> Option<ForeignBox<Timer<K>>>
Expand description

§Safety

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