From 6813690e893bc461bd2be60509850a5a80454c6a Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 18 Sep 2022 20:20:53 +0200 Subject: feat: add binding async factories to async DI container --- src/future.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/future.rs (limited to 'src/future.rs') 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 + Send + 'a>>; -- cgit v1.2.3-18-g5258