tokio/future/
mod.rs

1#![cfg_attr(not(feature = "macros"), allow(unreachable_pub))]
2
3//! Asynchronous values.
4
5#[cfg(any(feature = "macros", feature = "process"))]
6pub(crate) mod maybe_done;
7
8mod poll_fn;
9#[allow(unused_imports)]
10pub use poll_fn::poll_fn;
11
12cfg_process! {
13    mod try_join;
14    pub(crate) use try_join::try_join3;
15}
16
17cfg_sync! {
18    mod block_on;
19    pub(crate) use block_on::block_on;
20}
21
22cfg_trace! {
23    mod trace;
24    #[allow(unused_imports)]
25    pub(crate) use trace::InstrumentedFuture as Future;
26}
27
28cfg_not_trace! {
29    cfg_rt! {
30        pub(crate) use std::future::Future;
31    }
32}