summaryrefslogtreecommitdiffstats
path: root/examples/echo.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2018-02-01 10:31:07 -0800
committerGitHub <noreply@github.com>2018-02-01 10:31:07 -0800
commit2e94b658ed161ef7207a8decb20564556e9883f8 (patch)
treeb5ae64e1760a4b648398290f7958cd202a470c8b /examples/echo.rs
parentb9db119b456427d655b651f4f16d4266e6e16d98 (diff)
Track futures tokio-reform branch (#88)
This patch also updates tests and examples to remove deprecated API usage.
Diffstat (limited to 'examples/echo.rs')
-rw-r--r--examples/echo.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/echo.rs b/examples/echo.rs
index 558f3a68..54a28ff7 100644
--- a/examples/echo.rs
+++ b/examples/echo.rs
@@ -26,7 +26,7 @@ use std::env;
use std::net::SocketAddr;
use futures::Future;
-use futures::future::Executor;
+use futures::future::{self, Executor};
use futures::stream::Stream;
use futures_cpupool::CpuPool;
use tokio_io::AsyncRead;
@@ -114,5 +114,5 @@ fn main() {
// And finally now that we've define what our server is, we run it! Here we
// just need to execute the future we've created and wait for it to complete
// using the standard methods in the `futures` crate.
- done.wait().unwrap();
+ future::blocking(done).wait().unwrap();
}