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/src/runtime/handle.rs | 2 +- tokio/src/runtime/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tokio/src/runtime') diff --git a/tokio/src/runtime/handle.rs b/tokio/src/runtime/handle.rs index dfcc5e97..d48b6242 100644 --- a/tokio/src/runtime/handle.rs +++ b/tokio/src/runtime/handle.rs @@ -28,7 +28,7 @@ pub(crate) struct Handle { impl Handle { /// Enter the runtime context. This allows you to construct types that must - /// have an executor available on creation such as [`Delay`] or [`TcpStream`]. + /// have an executor available on creation such as [`Sleep`] or [`TcpStream`]. /// It will also allow you to call methods such as [`tokio::spawn`]. pub(crate) fn enter(&self, f: F) -> R where diff --git a/tokio/src/runtime/mod.rs b/tokio/src/runtime/mod.rs index 22109f7d..8e70db85 100644 --- a/tokio/src/runtime/mod.rs +++ b/tokio/src/runtime/mod.rs @@ -450,10 +450,10 @@ impl Runtime { } /// Enter the runtime context. This allows you to construct types that must - /// have an executor available on creation such as [`Delay`] or [`TcpStream`]. + /// have an executor available on creation such as [`Sleep`] or [`TcpStream`]. /// It will also allow you to call methods such as [`tokio::spawn`]. /// - /// [`Delay`]: struct@crate::time::Delay + /// [`Sleep`]: struct@crate::time::Sleep /// [`TcpStream`]: struct@crate::net::TcpStream /// [`tokio::spawn`]: fn@crate::spawn /// -- cgit v1.2.3