isothrum_runner/future.rs
1//! The boxed future the ports' object-safe methods return ([`ProcessRunner`](crate::ProcessRunner),
2//! [`HostPorts`](crate::HostPorts)): an embedder implements `ProcessRunner` without `async fn` in
3//! traits, and the runner holds the ports 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>>;