summaryrefslogtreecommitdiffstats
path: root/src/executor/mod.rs
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <vorner+github@vorner.cz>2018-08-25 21:51:49 +0200
committerCarl Lerche <me@carllerche.com>2018-08-25 12:51:49 -0700
commit6e45e0ac61b68208310748a61f68dc6df576dbb6 (patch)
treee86f38edbdba9dd21aa9ad7459d894c37b8295d4 /src/executor/mod.rs
parent82c5baa09bbcf1a4e2bb813552c72c69deb970d3 (diff)
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.
Diffstat (limited to 'src/executor/mod.rs')
-rw-r--r--src/executor/mod.rs5
1 files changed, 4 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;