Skip to main content

BackgroundTaskHandle

Type Alias BackgroundTaskHandle 

Source
pub type BackgroundTaskHandle<T> = JoinFuture<T>;
Expand description

Handle to a task spawned on the process-global background executor — await for its result, abort() to cancel. Distinct from TaskHandle because that one is the ambient executor’s handle and is tokio::task::JoinHandle on a hosted build.

Aliased Type§

pub struct BackgroundTaskHandle<T> { /* private fields */ }