Skip to content

Conversation

janriemer
Copy link

@janriemer janriemer commented Aug 25, 2025

Two examples are shown in Timer's docs:
One example for basic sleeping and one example for having a timeout on a future.

This adds corresponding doc aliases to Timer, so that this struct is easier to find with those use cases in mind.

See doc alias feature:
https://blog.rust-lang.org/2020/11/19/Rust-1.48/#adding-search-aliases

Two examples are shown in `Timer`'s docs:
One example for basic _sleeping_ and one example for having a _timeout_ on a future.

This adds corresponding doc aliases to `Timer`, so that this struct is easier to find with those use cases in mind.
Copy link
Collaborator

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants