mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +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:
@@ -29,7 +29,7 @@ use std::io::{Error, ErrorKind, BufReader};
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
use futures::Future;
|
||||
use futures::future::{self, Executor};
|
||||
use futures::future::Executor;
|
||||
use futures::stream::{self, Stream};
|
||||
use futures_cpupool::CpuPool;
|
||||
use tokio::net::TcpListener;
|
||||
@@ -134,5 +134,5 @@ fn main() {
|
||||
});
|
||||
|
||||
// execute server
|
||||
future::blocking(srv).wait().unwrap();
|
||||
srv.wait().unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user