Current thread runtime (#308)

This patch introduces a version of `Runtime` that runs all components on
the current thread. This allows users to spawn futures that do not implement
`Send`.
This commit is contained in:
Roman
2018-05-02 09:40:42 -07:00
committed by Carl Lerche
parent 6a0ecef81a
commit 2465483845
5 changed files with 276 additions and 30 deletions
+1
View File
@@ -113,6 +113,7 @@
//! [`Timer`]: https://docs.rs/tokio-timer/0.2/tokio_timer/timer/struct.Timer.html
mod builder;
pub mod current_thread;
mod shutdown;
mod task_executor;