mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
Track futures tokio-reform branch (#88)
This patch also updates tests and examples to remove deprecated API usage.
This commit is contained in:
@@ -8,6 +8,7 @@ use std::net::TcpStream;
|
||||
use std::thread;
|
||||
|
||||
use futures::Future;
|
||||
use futures::future::blocking;
|
||||
use futures::stream::Stream;
|
||||
use tokio_io::io::copy;
|
||||
use tokio_io::AsyncRead;
|
||||
@@ -48,7 +49,7 @@ fn echo_server() {
|
||||
.take(2)
|
||||
.collect();
|
||||
|
||||
t!(future.wait());
|
||||
t!(blocking(future).wait());
|
||||
|
||||
t.join().unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user