Skip to content

std::rt: Add a standalone sleep function. #9191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

huonw
Copy link
Member

@huonw huonw commented Sep 14, 2013

Allows std::rt::io::timer::sleep(1000) rather than std::rt::io::timer::Timer::new().unwrap().sleep(1000).

@flaper87
Copy link
Contributor

YES! Thanks! 👍

bors added a commit that referenced this pull request Sep 14, 2013
Allows `std::rt::io::timer::sleep(1000)` rather than `std::rt::io::timer::Timer::new().unwrap().sleep(1000)`.
@bors bors closed this Sep 14, 2013
@huonw huonw deleted the are-you-tired branch November 25, 2013 10:55
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 22, 2025
)

Closes rust-lang#9191
Closes rust-lang#14444
Closes rust-lang#8055

Adds a new helper to partly check for side effects by recursively
checking if the iterator type contains closures with mutable captures.

changelog: [`double_ended_iterator_last`] fix FP when iter has side
effects
changelog: [`needless_collect`] fix lint not consider side effects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants