runtime: fix unclear docs for {Handle,Runtime}::block_on (#3628)

This commit is contained in:
David Pedersen
2021-03-20 14:52:25 +01:00
committed by GitHub
parent 81f47e8866
commit 0bfcbc8be5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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.
///
+1 -1
View File
@@ -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.
///