Skip to content

Commit 31eb2a2

Browse files
committed
stabilize task::yield_now
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent 643b678 commit 31eb2a2

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/task/mod.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ cfg_std! {
124124

125125
#[doc(inline)]
126126
pub use async_macros::ready;
127+
128+
mod yield_now;
129+
130+
pub use yield_now::yield_now;
127131
}
128132

129133
cfg_default! {
@@ -157,8 +161,3 @@ cfg_default! {
157161
#[cfg(not(any(feature = "unstable", test)))]
158162
pub(crate) use spawn_blocking::spawn_blocking;
159163
}
160-
161-
cfg_unstable! {
162-
pub use yield_now::yield_now;
163-
mod yield_now;
164-
}

src/task/yield_now.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ use crate::task::{Context, Poll};
2626
/// #
2727
/// # })
2828
/// ```
29-
#[cfg(feature = "unstable")]
30-
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
3129
#[inline]
3230
pub async fn yield_now() {
3331
YieldNow(false).await

0 commit comments

Comments
 (0)