Struct composable::Task

source ·
pub struct Task { /* private fields */ }
Expand description

Asynchronous work being performed by a Store.

A Store uses a Local Async Executor to run its Tasks.

Implementations§

source§

impl Task

source

pub fn detach(self)

Detaches the task; leaving its Future running in the background.

source

pub fn cancel(self)

Cancels the task; meaning its Future won’t be polled again.