mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +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
-1
@@ -19,6 +19,7 @@ extern crate tokio_io;
|
||||
use std::env;
|
||||
use std::net::SocketAddr;
|
||||
|
||||
use futures::future;
|
||||
use futures::prelude::*;
|
||||
use tokio::net::TcpListener;
|
||||
|
||||
@@ -40,5 +41,5 @@ fn main() {
|
||||
Ok(())
|
||||
});
|
||||
|
||||
server.wait().unwrap();
|
||||
future::blocking(server).wait().unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user