Skip to main content

MaybeSendBoxFuture

Type Alias MaybeSendBoxFuture 

Source
pub type MaybeSendBoxFuture<'a, T> = BoxFuture<'a, T>;
Expand description

Boxed callback future that is Send on native targets and local on WASM.

This mirrors MaybeSendSync: native runtimes may move callbacks between executor threads, while Component Model and web guests run cooperatively on one WASM thread and may legitimately capture a non-Send Context.

Aliased Typeยง

pub struct MaybeSendBoxFuture<'a, T> { /* private fields */ }