2019-08-08 12:44:48 +00:00
|
|
|
//! Asynchronous values.
|
|
|
|
|
|
|
|
#[doc(inline)]
|
|
|
|
pub use std::future::Future;
|
|
|
|
|
2019-09-12 15:57:52 +00:00
|
|
|
#[doc(inline)]
|
|
|
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
|
|
|
pub use async_macros::{join, try_join};
|
|
|
|
|
2019-08-30 18:28:49 +00:00
|
|
|
use cfg_if::cfg_if;
|
|
|
|
|
2019-08-12 10:43:44 +00:00
|
|
|
pub use pending::pending;
|
2019-09-04 23:22:41 +00:00
|
|
|
pub use poll_fn::poll_fn;
|
2019-08-12 10:43:44 +00:00
|
|
|
pub use ready::ready;
|
2019-08-08 12:44:48 +00:00
|
|
|
|
2019-08-12 10:43:44 +00:00
|
|
|
mod pending;
|
2019-09-04 23:22:41 +00:00
|
|
|
mod poll_fn;
|
2019-08-12 10:43:44 +00:00
|
|
|
mod ready;
|
2019-08-30 18:28:49 +00:00
|
|
|
|
|
|
|
cfg_if! {
|
|
|
|
if #[cfg(any(feature = "unstable", feature = "docs"))] {
|
|
|
|
mod timeout;
|
|
|
|
pub use timeout::{timeout, TimeoutError};
|
|
|
|
}
|
|
|
|
}
|