-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
sleep_ms -> sleep #29622
sleep_ms -> sleep #29622
Conversation
@bors: r+ |
📌 Commit 500e8db has been approved by |
@@ -131,7 +132,7 @@ fn main() { | |||
}); | |||
} | |||
|
|||
thread::sleep_ms(50); | |||
thread::sleep(Duration::from_millis(50); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs another close paren.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
figures, with the ignore
I didn't see it :/
@bors: r- pending a fix to @aravind-pg's comment. |
@@ -614,8 +617,8 @@ We have three new lines. We’ve added an argument, `table`. We access the | |||
the fork at that particular index. That gives us access to the `Mutex` at that | |||
index, and we call `lock()` on it. If the mutex is currently being accessed by | |||
someone else, we’ll block until it becomes available. We have also a call to | |||
`thread::sleep_ms` between the moment first fork is picked and the moment the | |||
second forked is picked, as the process of picking up the fork is not | |||
`thread::sleep` between the moment first fork is picked and the moment the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/moment first/moment the first/
@bors: r=bstrie rollup |
📌 Commit 801f83f has been approved by |
Now that thread::sleep is a real thing, let's use it Fixes rust-lang#29621
Now that thread::sleep is a real thing, let's use it Fixes rust-lang#29621 r? @bstrie
Now that thread::sleep is a real thing, let's use it
Fixes #29621
r? @bstrie