diff options
author | Carl Lerche <me@carllerche.com> | 2018-02-06 07:26:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 07:26:21 -0800 |
commit | f0ea9d6f4c0a734ac4c235630f3d8cc51fb48f51 (patch) | |
tree | 011aae238269ce6ba1cf29013126e4e45fea4cd4 /examples/tinyhttp.rs | |
parent | 567887cc75170437f75f19f5966f2b32bf49ab72 (diff) |
Switch back to futures from crates.io (#113)
Doing so requires copying the `current_thread` executor from GitHub into
the repo.
Diffstat (limited to 'examples/tinyhttp.rs')
-rw-r--r-- | examples/tinyhttp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tinyhttp.rs b/examples/tinyhttp.rs index b0106d63..2f982484 100644 --- a/examples/tinyhttp.rs +++ b/examples/tinyhttp.rs @@ -90,7 +90,7 @@ fn worker(rx: mpsc::UnboundedReceiver<net::TcpStream>) { })).unwrap(); Ok(()) }); - future::blocking(done).wait().unwrap(); + done.wait().unwrap(); } /// "Server logic" is implemented in this function. |