mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-16 00:00:12 +02:00
runtime: fix unclear docs for {Handle,Runtime}::block_on (#3628)
This commit is contained in:
@@ -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.
|
||||
///
|
||||
|
||||
@@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user