tokio::runtime::task::harness

Function cancel_task

Source
fn cancel_task<T: Future, S: Schedule>(core: &Core<T, S>)
Expand description

Cancels the task and store the appropriate error in the stage field.