aboutsummaryrefslogtreecommitdiff
path: root/src/future.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/future.rs')
-rw-r--r--src/future.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/future.rs b/src/future.rs
new file mode 100644
index 0000000..ae4b3a2
--- /dev/null
+++ b/src/future.rs
@@ -0,0 +1,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>>;