Function pros_sys::rtos::task_notify_take
source · pub unsafe extern "C" fn task_notify_take(
clear_on_exit: bool,
timeout: u32
) -> u32Expand description
Waits for a notification to be nonzero.
See https://pros.cs.purdue.edu/v5/tutorials/topical/notifications.html for details.
\param clear_on_exit If true (1), then the notification value is cleared. If false (0), then the notification value is decremented. \param timeout Specifies the amount of time to be spent waiting for a notification to occur.
\return The value of the task’s notification value before it is decremented or cleared