mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +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:
@@ -24,7 +24,7 @@ use std::net::SocketAddr;
|
||||
use std::thread;
|
||||
|
||||
use futures::prelude::*;
|
||||
use futures::future::Executor;
|
||||
use futures::future::{self, Executor};
|
||||
use futures::sync::mpsc;
|
||||
use futures_cpupool::CpuPool;
|
||||
use tokio_io::AsyncRead;
|
||||
@@ -61,7 +61,7 @@ fn main() {
|
||||
next = (next + 1) % channels.len();
|
||||
Ok(())
|
||||
});
|
||||
srv.wait().unwrap();
|
||||
future::blocking(srv).wait().unwrap();
|
||||
}
|
||||
|
||||
fn worker(rx: mpsc::UnboundedReceiver<TcpStream>) {
|
||||
@@ -88,5 +88,5 @@ fn worker(rx: mpsc::UnboundedReceiver<TcpStream>) {
|
||||
|
||||
Ok(())
|
||||
});
|
||||
done.wait().unwrap();
|
||||
future::blocking(done).wait().unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user