From 53ccfc1fd694ee70c7a4d1e7af09a856bafb49e5 Mon Sep 17 00:00:00 2001 From: Juan Alvarez Date: Thu, 1 Oct 2020 02:24:33 -0500 Subject: time: introduce `sleep` and `sleep_until` functions (#2826) --- tokio/src/task/local.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tokio/src/task/local.rs') diff --git a/tokio/src/task/local.rs b/tokio/src/task/local.rs index 1d7b99d5..ccb9201e 100644 --- a/tokio/src/task/local.rs +++ b/tokio/src/task/local.rs @@ -95,7 +95,7 @@ cfg_rt_util! { /// }); /// /// local.spawn_local(async move { - /// time::delay_for(time::Duration::from_millis(100)).await; + /// time::sleep(time::Duration::from_millis(100)).await; /// println!("goodbye {}", unsend_data) /// }); /// -- cgit v1.2.3