2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-26 06:09:39 +00:00
async-std/src/future/mod.rs

26 lines
461 B
Rust
Raw Normal View History

2019-08-08 12:44:48 +00:00
//! Asynchronous values.
#[doc(inline)]
pub use std::future::Future;
#[doc(inline)]
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub use async_macros::{join, try_join};
use cfg_if::cfg_if;
2019-08-12 10:43:44 +00:00
pub use pending::pending;
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;
mod poll_fn;
2019-08-12 10:43:44 +00:00
mod ready;
cfg_if! {
if #[cfg(any(feature = "unstable", feature = "docs"))] {
mod timeout;
pub use timeout::{timeout, TimeoutError};
}
}