Skip to content

Conversation

janriemer
Copy link
Contributor

@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.

@zeenix
Copy link
Member

zeenix commented Sep 6, 2025

@janriemer could you please check why the CI is failing and provide a fix?

@taiki-e
Copy link
Collaborator

taiki-e commented Sep 6, 2025

CI issue was recently fixed rust-lang/rust#145952.

@taiki-e taiki-e merged commit db95d91 into smol-rs:master Sep 6, 2025
62 of 64 checks passed
@janriemer janriemer deleted the patch-1 branch September 7, 2025 12:51
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.

3 participants