diff --git a/tokio/src/time/driver/sleep.rs b/tokio/src/time/driver/sleep.rs index 5c366293d5f..8658813896e 100644 --- a/tokio/src/time/driver/sleep.rs +++ b/tokio/src/time/driver/sleep.rs @@ -152,6 +152,8 @@ pin_project! { /// /// [`select!`]: ../macro.select.html /// [`tokio::pin!`]: ../macro.pin.html + // Alias for old name in 0.2 + #[cfg_attr(docsrs, doc(alias = "Delay"))] #[derive(Debug)] #[must_use = "futures do nothing unless you `.await` or poll them"] pub struct Sleep {