diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/executor/mod.rs | 5 | ||||
-rw-r--r-- | src/runtime/current_thread/mod.rs | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/executor/mod.rs b/src/executor/mod.rs index 3f238f8f..6852e399 100644 --- a/src/executor/mod.rs +++ b/src/executor/mod.rs @@ -39,7 +39,10 @@ //! [`Executor`]: trait.Executor.html //! [`spawn`]: fn.spawn.html -#[deprecated(since = "0.1.8", note = "use tokio-current-thread crate instead")] +#[deprecated( + since = "0.1.8", + note = "use tokio-current-thread crate or functions in tokio::runtime::current_thread instead", +)] #[doc(hidden)] pub mod current_thread; diff --git a/src/runtime/current_thread/mod.rs b/src/runtime/current_thread/mod.rs index b0063f64..57a934c0 100644 --- a/src/runtime/current_thread/mod.rs +++ b/src/runtime/current_thread/mod.rs @@ -71,6 +71,7 @@ mod runtime; pub use self::builder::Builder; pub use self::runtime::{Runtime, Handle}; +pub use tokio_current_thread::spawn; use futures::Future; |