pub trait Task: Sync + Send {
    fn kill(&self);
    fn suspend(&self);
    fn resume(&self);
    fn exceptionate(&self) -> Arc<Exceptionate>;
    fn debug_exceptionate(&self) -> Arc<Exceptionate>;
}
Expand description

Task (Thread, Process, or Job)

Required Methods

Kill the task. The task do not terminate immediately when killed. It will terminate after all its children are terminated or some cleanups are finished.

Suspend the task. Currently only thread or process handles may be suspended.

Resume the task

Get the exceptionate.

Get the debug exceptionate.

Implementors