From 3ac4cfb68a6ac8940a71d29b328a35461195fc45 Mon Sep 17 00:00:00 2001 From: zhiqiangxu <652732310@qq.com> Date: Sun, 3 Dec 2023 18:47:40 +0800 Subject: [PATCH] runtime: move comment to the right place (#6184) --- tokio/src/runtime/park.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/runtime/park.rs b/tokio/src/runtime/park.rs index 6f41e2c6a..98a8fe5a3 100644 --- a/tokio/src/runtime/park.rs +++ b/tokio/src/runtime/park.rs @@ -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.