mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +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:
@@ -18,9 +18,10 @@ extern crate tokio;
|
||||
extern crate tokio_io;
|
||||
extern crate futures;
|
||||
|
||||
use tokio::executor::current_thread;
|
||||
use tokio::net::TcpListener;
|
||||
use tokio_io::io;
|
||||
use futures::{current_thread, Future, Stream};
|
||||
use futures::{Future, Stream};
|
||||
|
||||
pub fn main() {
|
||||
let addr = "127.0.0.1:6142".parse().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user