summaryrefslogtreecommitdiffstats
path: root/tokio-test/src
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-test/src')
-rw-r--r--tokio-test/src/clock.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tokio-test/src/clock.rs b/tokio-test/src/clock.rs
index 43f073d9..a5c8b4f2 100644
--- a/tokio-test/src/clock.rs
+++ b/tokio-test/src/clock.rs
@@ -7,14 +7,13 @@
//!
//! use tokio::clock;
//! use tokio_test::{assert_ready, assert_pending, task};
-//! use tokio_timer::Delay;
+//! use tokio_timer::delay;
//!
//! use std::time::Duration;
//!
//! tokio_test::clock::mock(|handle| {
//! let mut task = task::spawn(async {
-//! let delay = Delay::new(clock::now() + Duration::from_secs(1));
-//! delay.await
+//! delay(clock::now() + Duration::from_secs(1)).await
//! });
//!
//! assert_pending!(task.poll());