mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
runtime: move comment to the right place (#6184)
This commit is contained in:
parent
7232424a81
commit
3ac4cfb68a
@ -81,7 +81,6 @@ impl ParkThread {
|
||||
// ==== impl Inner ====
|
||||
|
||||
impl Inner {
|
||||
/// Parks the current thread for at most `dur`.
|
||||
fn park(&self) {
|
||||
// If we were previously notified then we consume this notification and
|
||||
// return quickly.
|
||||
@ -129,6 +128,7 @@ impl Inner {
|
||||
}
|
||||
}
|
||||
|
||||
/// Parks the current thread for at most `dur`.
|
||||
fn park_timeout(&self, dur: Duration) {
|
||||
// Like `park` above we have a fast path for an already-notified thread,
|
||||
// and afterwards we start coordinating for a sleep. Return quickly.
|
||||
|
Loading…
x
Reference in New Issue
Block a user