Track futures tokio-reform branch (#88)

This patch also updates tests and examples to remove deprecated API
usage.
This commit is contained in:
Carl Lerche
2018-02-01 10:31:07 -08:00
committed by GitHub
parent b9db119b45
commit 2e94b658ed
24 changed files with 66 additions and 57 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ use std::net::TcpStream;
use std::thread;
use futures::Future;
use futures::future::blocking;
use futures::stream::Stream;
use tokio::net::TcpListener;
use tokio_io::AsyncRead;
@@ -44,7 +45,7 @@ fn echo_server() {
let halves = client.map(|s| s.split());
let copied = halves.and_then(|(a, b)| copy(a, b));
let (amt, _, _) = t!(copied.wait());
let (amt, _, _) = t!(blocking(copied).wait());
t.join().unwrap();
assert_eq!(amt, msg.len() as u64 * 1024);