BoxFuture

A boxed, sendable future, used by the hook types.

A boxed, sendable future, used by the hook types.

use sponsorkit::BoxFuture;

pub type BoxFuture<T> = Pin<Box<dyn Future<Output = T> + Send + 'static>>;