re-export tokio-current-thread::spawn (#579)

Re-export it inside the tokio::runtime::current_thread, as the original
place (tokio::executor::current_thread) is hidden from documentation and
users need some way to spawn non-Send futures.
This commit is contained in:
Michal 'vorner' Vaner
2018-08-25 12:51:49 -07:00
committed by Carl Lerche
parent 82c5baa09b
commit 6e45e0ac61
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -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;