timer: move tokio-timer into tokio crate (#1674)

A step towards collapsing Tokio sub crates into a single `tokio`
crate (#1318).

The `timer` implementation is now provided by the main `tokio` crate.
The `timer` functionality may still be excluded from the build by
skipping the `timer` feature flag.
This commit is contained in:
Carl Lerche
2019-10-21 16:45:13 -07:00
committed by GitHub
parent c9bcbe77b9
commit b8cee1a60a
53 changed files with 216 additions and 771 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
#![warn(rust_2018_idioms)]
use std::time::{Duration, Instant};
use tokio::timer::delay;
use tokio_test::block_on;
use tokio_timer::delay;
use std::time::{Duration, Instant};
#[test]
fn async_block() {