Skip to content

Commit 46c58b2

Browse files
authored
Merge pull request #514 from async-rs/stabilize-yield-now
stabilize task::yield_now
2 parents 5017117 + 0d5c7a2 commit 46c58b2

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/task/mod.rs

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

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

129132
cfg_default! {
@@ -157,8 +160,3 @@ cfg_default! {
157160
#[cfg(not(any(feature = "unstable", test)))]
158161
pub(crate) use spawn_blocking::spawn_blocking;
159162
}
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)