mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
Switch back to futures from crates.io (#113)
Doing so requires copying the `current_thread` executor from GitHub into the repo.
This commit is contained in:
+3
-2
@@ -28,7 +28,7 @@ use std::io::{self, Read, Write};
|
||||
|
||||
use futures::stream::Stream;
|
||||
use futures::{Future, Poll};
|
||||
use futures::future::{self, Executor};
|
||||
use futures::future::{Executor};
|
||||
use futures_cpupool::CpuPool;
|
||||
use tokio::net::{TcpListener, TcpStream};
|
||||
use tokio_io::{AsyncRead, AsyncWrite};
|
||||
@@ -92,7 +92,8 @@ fn main() {
|
||||
|
||||
Ok(())
|
||||
});
|
||||
future::blocking(done).wait().unwrap();
|
||||
|
||||
done.wait().unwrap();
|
||||
}
|
||||
|
||||
// This is a custom type used to have a custom implementation of the
|
||||
|
||||
Reference in New Issue
Block a user