Trait yew::services::Task

source ·
pub trait Task: Drop {
    fn is_active(&self) -> bool;
    fn cancel(&mut self);
}
Expand description

An universal task of a service. It have to be canceled when dropped.

Required Methods

Returns true if task is active.

Cancel current service’s routine.

Implementors