thread_control
pub struct Control { // some fields omitted }
Struct to control thread execution.
impl Control
fn interrupt(&self)
Interrupt execution of thread. Actually it panics when thread checking flag.
fn stop(&self)
Set stop flag.
fn is_done(&self) -> bool
Return true if thread ended.
true
fn is_interrupted(&self) -> bool
Return true if thread was interrupted or panicked.