stabilize task::yield_now

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
bench-mutexes
Yoshua Wuyts 5 years ago
parent 643b678ea5
commit 0d5c7a217f
No known key found for this signature in database
GPG Key ID: 24EA8164F96777ED

@ -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;
}

@ -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

Loading…
Cancel
Save