Function gnunet_sys::GNUNET_SCHEDULER_cancel[][src]

pub unsafe extern "C" fn GNUNET_SCHEDULER_cancel(
    task: *mut GNUNET_SCHEDULER_Task
) -> *mut c_void

Cancel the task with the specified identifier. The task must not yet have run. Only allowed to be called as long as the scheduler is running, that is one of the following conditions is met:

  • #GNUNET_SCHEDULER_run has been called and has not returned yet
  • #GNUNET_SCHEDULER_driver_init has been run and #GNUNET_SCHEDULER_driver_done has not been called yet

@param task id of the task to cancel @return original closure of the task