Skip to main content

BackgroundHandle

Type Alias BackgroundHandle 

Source
pub type BackgroundHandle<R> = Pin<Box<dyn Future<Output = Result<R, ProximaError>> + Send>>;
Expand description

Handle to a task running on the background work-stealing pool. The chain runtime stays per-core; this handle lets a Pipe await a CPU-bound side computation that does migrate between threads.

Aliased Typeยง

#[repr(transparent)]
pub struct BackgroundHandle<R> { /* private fields */ }