Debian Codegraph @

third_party/rust/tokio/src/future/mod.rs

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