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:
Carl Lerche
2018-02-06 07:26:21 -08:00
committed by GitHub
parent 567887cc75
commit f0ea9d6f4c
31 changed files with 1313 additions and 70 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ extern crate tokio_io;
use std::{env, io};
use std::net::SocketAddr;
use futures::{future, Future, Poll};
use futures::{Future, Poll};
use tokio::net::UdpSocket;
struct Server {
@@ -58,9 +58,9 @@ fn main() {
// Next we'll create a future to spawn (the one we defined above) and then
// we'll block our current thread waiting on the result of the future
future::blocking(Server {
Server {
socket: socket,
buf: vec![0; 1024],
to_send: None,
}).wait().unwrap();
}.wait().unwrap();
}