Update Tokio to Rust 2018 (#1082)

This commit is contained in:
Carl Lerche
2019-05-14 10:27:36 -07:00
committed by GitHub
parent 79d8820050
commit cb4aea394e
343 changed files with 1725 additions and 2813 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#![feature(await_macro, async_await)]
use tokio::await;
use tokio::async_wait;
use tokio::timer::Delay;
use std::time::{Duration, Instant};
@@ -18,5 +18,5 @@ async fn fail_no_async() {
#[tokio::test]
async fn use_timer() {
let when = Instant::now() + Duration::from_millis(10);
await!(Delay::new(when));
async_wait!(Delay::new(when));
}