doc: alias sleep to delay (#3604)

This commit is contained in:
Rob Ede
2021-03-10 23:26:11 +01:00
committed by GitHub
parent e40ec3e424
commit 1cda0f16a2
+2
View File
@@ -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 {