Skip to main content

current_job_cancellation

Function current_job_cancellation 

Source
pub fn current_job_cancellation() -> Option<JobCancellation>
Expand description

The cancellation token of the job running on this worker thread, when the job was submitted through Executor::submit_cancellable_async.