pub trait Task: Drop { fn is_active(&self) -> bool; fn cancel(&mut self); }
An universal task of a service. It have to be canceled when dropped.
Returns true if task is active.
true
Cancel current service’s routine.