isothrum_runner/future.rs
1//! The boxed future the ports' object-safe methods return ([`ProcessRunner`](crate::ProcessRunner),
2//! [`HostPorts`](crate::HostPorts), [`Hooks`](crate::Hooks)): an embedder implements them without
3//! `async fn` in traits, and the runner holds them as `dyn` values shared between threads.
4
5use std::future::Future;
6use std::pin::Pin;
7
8/// A boxed future that can be sent between threads.
9pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;