1cfg_macros! {
2 pub use crate::future::maybe_done::maybe_done;
3
4 pub use std::future::poll_fn;
5
6 pub use crate::macros::join::{BiasedRotator, Rotator};
7
8 #[doc(hidden)]
9 pub fn thread_rng_n(n: u32) -> u32 {
10 crate::runtime::context::thread_rng_n(n)
11 }
12
13 cfg_coop! {
14 #[doc(hidden)]
15 #[inline]
16 pub fn poll_budget_available(cx: &mut Context<'_>) -> Poll<()> {
17 crate::task::coop::poll_budget_available(cx)
18 }
19 }
20
21 cfg_not_coop! {
22 #[doc(hidden)]
23 #[inline]
24 pub fn poll_budget_available(_: &mut Context<'_>) -> Poll<()> {
25 Poll::Ready(())
26 }
27 }
28}
29
30pub use std::future::{Future, IntoFuture};
31pub use std::pin::Pin;
32pub use std::task::{Context, Poll};