[][src]Trait yew::services::Task

pub trait Task: Drop {
    fn is_active(&self) -> bool;
}

A task is an ongoing process which is part of a Yew application.

All tasks must be handled when they are cancelled, which is why the Drop trait is required. Tasks should cancel themselves in their implementation of the Drop trait.

Required methods

fn is_active(&self) -> bool

Returns true if task is active.

Loading content...

Implementors

impl Task for FetchTask[src]

impl Task for IntervalTask[src]

impl Task for ReaderTask[src]

impl Task for RenderTask[src]

impl Task for TimeoutTask[src]

impl Task for WebSocketTask[src]

Loading content...