pub trait TaskHandle: Send + Sync {
// Required methods
fn cancel(&self);
fn is_cancelled(&self) -> bool;
}Expand description
Opaque handle returned when a task is started.
Required Methods§
Sourcefn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Check if cancellation has been requested.