Skip to main content

BoxFuture

Type Alias BoxFuture 

Source
pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;
Expand description

堆装箱的 Send + 'static 异步任务类型别名(供 SchedulerBackend 后端实现接收)。

Aliased Type§

#[repr(transparent)]
pub struct BoxFuture<'a, T> { /* private fields */ }