Skip to content

Update tokio::time::sleep documentation to reflect maximum sleep - #7302

Merged
maminrayej merged 1 commit into
tokio-rs:masterfrom
tillrohrmann:issues/7301
May 4, 2025
Merged

maminrayej merged 1 commit into
tokio-rs:masterfrom
tillrohrmann:issues/7301

Conversation

@tillrohrmann

Copy link
Copy Markdown
Contributor

This commit updates the tokio::time::sleep documentation to remove the outdated maximum sleep duration.

This fixes #7301.

@maminrayej maminrayej added A-tokio Area: The main tokio crate M-time Module: tokio/time labels May 4, 2025
@Darksonn Darksonn added the T-docs Topic: documentation label May 4, 2025
Comment thread tokio/tests/time_sleep.rs Outdated
This commit updates the tokio::time::sleep documentation to remove the
outdated maximum sleep duration.

This fixes tokio-rs#7301.
@tillrohrmann

Copy link
Copy Markdown
Contributor Author

I've replaced MAX_DURATION with Duration::MAX. Let's see what CI thinks about it.

@maminrayej maminrayej left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks.

@maminrayej
maminrayej merged commit 48ca254 into tokio-rs:master May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tokio Area: The main tokio crate M-time Module: tokio/time T-docs Topic: documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove outdated documentation about max sleep duration

3 participants