Struct thread_control::Flag
[−]
[src]
pub struct Flag { /* fields omitted */ }
Struct to check execution status of spawned thread.
Methods
impl Flag
[src]
fn new() -> Self
Creates new flag.
fn take_control(&self) -> Control
Creates new Control
to control this flag.
fn alive(&self) -> bool
fn is_alive(&self) -> bool
Check the flag is not stopped and not interrupted Use it if panic is not desirable behavior
fn interrupt(self)
Set interrupt flag and drop the instance