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

#![allow(clippy::module_name_repetitions)]
use std::future::Future;
use std::pin::Pin;

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