We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5017117 + 0d5c7a2 commit 46c58b2Copy full SHA for 46c58b2
src/task/mod.rs
@@ -124,6 +124,9 @@ cfg_std! {
124
125
#[doc(inline)]
126
pub use async_macros::ready;
127
+
128
+ pub use yield_now::yield_now;
129
+ mod yield_now;
130
}
131
132
cfg_default! {
@@ -157,8 +160,3 @@ cfg_default! {
157
160
#[cfg(not(any(feature = "unstable", test)))]
158
161
pub(crate) use spawn_blocking::spawn_blocking;
159
162
-
-cfg_unstable! {
- pub use yield_now::yield_now;
163
- mod yield_now;
164
-}
src/task/yield_now.rs
@@ -26,8 +26,6 @@ use crate::task::{Context, Poll};
26
/// #
27
/// # })
28
/// ```
29
-#[cfg(feature = "unstable")]
30
-#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
31
#[inline]
32
pub async fn yield_now() {
33
YieldNow(false).await
0 commit comments