From 0bfcbc8be5368bf2a203c2c2856e5d3e7f5154b3 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Sat, 20 Mar 2021 14:52:25 +0100 Subject: [PATCH] runtime: fix unclear docs for `{Handle,Runtime}::block_on` (#3628) --- tokio/src/runtime/handle.rs | 2 +- tokio/src/runtime/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio/src/runtime/handle.rs b/tokio/src/runtime/handle.rs index 9f1a45890..4f1b4c579 100644 --- a/tokio/src/runtime/handle.rs +++ b/tokio/src/runtime/handle.rs @@ -205,7 +205,7 @@ impl Handle { /// Run a future to completion on this `Handle`'s associated `Runtime`. /// - /// This runs the given future on the runtime, blocking until it is + /// This runs the given future on the current thread, blocking until it is /// complete, and yielding its resolved result. Any tasks or timers which /// the future spawns internally will be executed on the runtime. /// diff --git a/tokio/src/runtime/mod.rs b/tokio/src/runtime/mod.rs index 2075d4877..3ad4c1890 100644 --- a/tokio/src/runtime/mod.rs +++ b/tokio/src/runtime/mod.rs @@ -405,7 +405,7 @@ cfg_rt! { /// Run a future to completion on the Tokio runtime. This is the /// runtime's entry point. /// - /// This runs the given future on the runtime, blocking until it is + /// This runs the given future on the current thread, blocking until it is /// complete, and yielding its resolved result. Any tasks or timers /// which the future spawns internally will be executed on the runtime. ///