From f0ea9d6f4c0a734ac4c235630f3d8cc51fb48f51 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Tue, 6 Feb 2018 07:26:21 -0800 Subject: Switch back to futures from crates.io (#113) Doing so requires copying the `current_thread` executor from GitHub into the repo. --- examples/udp-codec.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/udp-codec.rs') diff --git a/examples/udp-codec.rs b/examples/udp-codec.rs index 5c11e9f3..c874ebd7 100644 --- a/examples/udp-codec.rs +++ b/examples/udp-codec.rs @@ -15,7 +15,7 @@ use std::io; use std::net::SocketAddr; use futures::{Future, Stream, Sink}; -use futures::future::{self, Executor}; +use futures::future::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(future::blocking(a).wait()); + drop(a.wait()); } -- cgit v1.2.3