mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +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:
+2
-2
@@ -29,7 +29,7 @@ use std::io::{Error, ErrorKind, BufReader};
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
use futures::Future;
|
||||
use futures::future::Executor;
|
||||
use futures::future::{self, Executor};
|
||||
use futures::stream::{self, Stream};
|
||||
use futures_cpupool::CpuPool;
|
||||
use tokio::net::TcpListener;
|
||||
@@ -134,5 +134,5 @@ fn main() {
|
||||
});
|
||||
|
||||
// execute server
|
||||
srv.wait().unwrap();
|
||||
future::blocking(srv).wait().unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user