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.
1 parent 643b678 commit 31eb2a2Copy full SHA for 31eb2a2
src/task/mod.rs
@@ -124,6 +124,10 @@ cfg_std! {
124
125
#[doc(inline)]
126
pub use async_macros::ready;
127
+
128
+ mod yield_now;
129
130
+ pub use yield_now::yield_now;
131
}
132
133
cfg_default! {
@@ -157,8 +161,3 @@ cfg_default! {
157
161
#[cfg(not(any(feature = "unstable", test)))]
158
162
pub(crate) use spawn_blocking::spawn_blocking;
159
163
160
-
-cfg_unstable! {
- pub use yield_now::yield_now;
- 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