Trait executor_trait::Task [−][src]
pub trait Task: Future<Output = ()> {
fn cancel<'async_trait>(
self: Box<Self>
) -> Pin<Box<dyn Future<Output = Option<()>> + 'async_trait>>
where
Self: 'async_trait;
}
Expand description
A common interface to wait for a Task completion, let it run n the background or cancel it.