aboutsummaryrefslogtreecommitdiff
path: root/src/future.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-18 20:20:53 +0200
committerHampusM <hampus@hampusmat.com>2022-09-18 20:20:53 +0200
commit6813690e893bc461bd2be60509850a5a80454c6a (patch)
treef84e5321a0f608beda6b3abbf82de5c9496efc3e /src/future.rs
parent0b914f415cb04c45d8655cae3828af264887d203 (diff)
feat: add binding async factories to async DI container
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>>;