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 pub use poll_fn::poll_fn; 10 11 cfg_not_loom! { 12 mod ready; 13 pub(crate) use ready::{ok, Ready}; 14 } 15 16 cfg_process! { 17 mod try_join; 18 pub(crate) use try_join::try_join3; 19 } 20 21 cfg_sync! { 22 mod block_on; 23 pub(crate) use block_on::block_on; 24 } 25 26 cfg_trace! { 27 mod trace; 28 pub(crate) use trace::InstrumentedFuture as Future; 29 } 30 31 cfg_not_trace! { 32 cfg_rt! { 33 pub(crate) use std::future::Future; 34 } 35 } 36