pub unsafe extern "C" fn k_work_cancel_delayable(
dwork: *mut k_work_delayable,
) -> i32
Expand description
@brief Cancel delayable work.
Similar to k_work_cancel() but for delayable work. If the work is scheduled or submitted it is canceled. This function does not wait for the cancellation to complete.
@note The work may still be running when this returns. Use k_work_flush_delayable() or k_work_cancel_delayable_sync() to ensure it is not running.
@note Canceling delayable work does not prevent rescheduling it. It does prevent submitting it until the cancellation completes.
@funcprops \isr_ok
@param dwork pointer to the delayable work item.
@return the k_work_delayable_busy_get() status indicating the state of the item after all cancellation steps performed by this call are completed.