Struct scheduled_executor::executor::TaskHandle
[−]
[src]
pub struct TaskHandle { /* fields omitted */ }
A handle that allows a task to be stopped. A new handle is returned every time a new task is scheduled. Note that stopping a task will prevent it from running the next time it's scheduled to run, but it won't interrupt a task that is currently being executed.
Methods
impl TaskHandle
[src]
fn stop(&self)
Stops the correspondent task. Not that a running task won't be interrupted, but future tasks executions will be prevented.
fn stopped(&self) -> bool
Returns true if the task is stopped.
Trait Implementations
impl Clone for TaskHandle
[src]
fn clone(&self) -> TaskHandle
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more