From 0d5c7a217fac0ff611c4e0ad59d8480a4314c454 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Tue, 12 Nov 2019 02:09:38 +0100 Subject: [PATCH] stabilize task::yield_now Signed-off-by: Yoshua Wuyts --- src/task/mod.rs | 8 +++----- src/task/yield_now.rs | 2 -- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/task/mod.rs b/src/task/mod.rs index bcdea72c..198e5787 100644 --- a/src/task/mod.rs +++ b/src/task/mod.rs @@ -124,6 +124,9 @@ cfg_std! { #[doc(inline)] pub use async_macros::ready; + + pub use yield_now::yield_now; + mod yield_now; } cfg_default! { @@ -157,8 +160,3 @@ cfg_default! { #[cfg(not(any(feature = "unstable", test)))] pub(crate) use spawn_blocking::spawn_blocking; } - -cfg_unstable! { - pub use yield_now::yield_now; - mod yield_now; -} diff --git a/src/task/yield_now.rs b/src/task/yield_now.rs index 03f83e2e..40306966 100644 --- a/src/task/yield_now.rs +++ b/src/task/yield_now.rs @@ -26,8 +26,6 @@ use crate::task::{Context, Poll}; /// # /// # }) /// ``` -#[cfg(feature = "unstable")] -#[cfg_attr(feature = "docs", doc(cfg(unstable)))] #[inline] pub async fn yield_now() { YieldNow(false).await