Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/task/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ cfg_std! {

#[doc(inline)]
pub use async_macros::ready;

pub use yield_now::yield_now;
mod yield_now;
}

cfg_default! {
Expand Down Expand Up @@ -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;
}
2 changes: 0 additions & 2 deletions src/task/yield_now.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down