relay/src/future.rs

5 lines
198 B
Rust
Raw Normal View History

2023-09-09 20:46:22 +00:00
use std::{future::Future, pin::Pin};
pub(crate) type LocalBoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;
pub(crate) type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;