From 60d81bbe10faf344ea18438a1c5ecb9173e6ec52 Mon Sep 17 00:00:00 2001 From: Juan Alvarez Date: Thu, 8 Oct 2020 22:35:12 -0500 Subject: time: rename `Delay` future to `Sleep` (#2932) --- tokio/tests/macros_select.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tokio/tests/macros_select.rs') diff --git a/tokio/tests/macros_select.rs b/tokio/tests/macros_select.rs index f77f3f01..cc214bbb 100644 --- a/tokio/tests/macros_select.rs +++ b/tokio/tests/macros_select.rs @@ -359,10 +359,10 @@ async fn join_with_select() { async fn use_future_in_if_condition() { use tokio::time::{self, Duration}; - let mut delay = time::sleep(Duration::from_millis(50)); + let mut sleep = time::sleep(Duration::from_millis(50)); tokio::select! { - _ = &mut delay, if !delay.is_elapsed() => { + _ = &mut sleep, if !sleep.is_elapsed() => { } _ = async { 1 } => { } -- cgit v1.2.3