Skip to content

Commit

Permalink
runtime: move comment to the right place (#6184)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu authored Dec 3, 2023
1 parent 7232424 commit 3ac4cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/runtime/park.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3ac4cfb

Please sign in to comment.