aboutsummaryrefslogtreecommitdiff
path: root/src/future.rs
blob: 6df136f1c6fe235d4046bb58ecd961db7a43b0ac (plain)
1
2
3
4
5
6
7
8
//! Future related utilities.
//!
//! *This module is only available if Syrette is built with the "async" feature.*
use std::future::Future;
use std::pin::Pin;

/// A boxed future.
pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;