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 -1
View File
@@ -78,7 +78,7 @@ impl Builder {
/// # extern crate tokio;
/// # use tokio::runtime::Builder;
/// # pub fn main() {
/// let runtime = Builder::new().build();
/// let runtime = Builder::new().build().unwrap();
/// // ... call runtime.run(...)
/// # let _ = runtime;
/// # }