diff --git a/Cargo.toml b/Cargo.toml index 907c1eb..133eadc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,7 @@ docs = [] unstable = [] [dependencies] +async-macros = "1.0.0" async-task = "1.0.0" cfg-if = "0.1.9" crossbeam-channel = "0.3.9" diff --git a/src/task/mod.rs b/src/task/mod.rs index faab696..56c0113 100644 --- a/src/task/mod.rs +++ b/src/task/mod.rs @@ -24,11 +24,10 @@ #[doc(inline)] pub use std::task::{Context, Poll, Waker}; -pub use block_on::block_on; -// Re-export the `ready!` definition from an external crate to expose it from -// this submodule. -pub use futures_core::ready; +#[doc(inline)] +pub use async_macros::ready; +pub use block_on::block_on; pub use local::{AccessError, LocalKey}; pub use pool::{current, spawn, Builder}; pub use sleep::sleep;