summaryrefslogtreecommitdiffstats
path: root/third_party/rust/tokio/src/macros/support.rs
blob: 10526bcbca7f9bd5b6b09e6eed4e63959b9f4e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
cfg_macros! {
    pub use crate::future::poll_fn;
    pub use crate::future::maybe_done::maybe_done;

    #[doc(hidden)]
    pub fn thread_rng_n(n: u32) -> u32 {
        crate::runtime::context::thread_rng_n(n)
    }
}

pub use std::future::Future;
pub use std::pin::Pin;
pub use std::task::Poll;