froodi 1.0.0-beta.15

An ergonomic Rust IoC container
Documentation
1
2
3
4
5
6
7
8
9
10
use alloc::boxed::Box;
use core::{future::Future, pin::Pin};

#[cfg(feature = "thread_safe")]
#[allow(dead_code)]
pub(crate) type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;

#[cfg(not(feature = "thread_safe"))]
#[allow(dead_code)]
pub(crate) type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;