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]

Stops the correspondent task. Not that a running task won't be interrupted, but future tasks executions will be prevented.

Returns true if the task is stopped.

Trait Implementations

impl Clone for TaskHandle
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more