mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-07 00:00:09 +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:
@@ -15,7 +15,7 @@ use std::io;
|
||||
use std::net::SocketAddr;
|
||||
|
||||
use futures::{Future, Stream, Sink};
|
||||
use futures::future::Executor;
|
||||
use futures::future::{self, Executor};
|
||||
use futures_cpupool::CpuPool;
|
||||
use tokio::net::{UdpSocket, UdpCodec};
|
||||
|
||||
@@ -76,5 +76,5 @@ fn main() {
|
||||
|
||||
// Spawn the sender of pongs and then wait for our pinger to finish.
|
||||
pool.execute(b.then(|_| Ok(()))).unwrap();
|
||||
drop(a.wait());
|
||||
drop(future::blocking(a).wait());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user