From f83f6388c42aa62c2096073b1dd80459189d7ea9 Mon Sep 17 00:00:00 2001 From: Palash Ahuja Date: Thu, 23 Apr 2020 10:04:43 -0400 Subject: [PATCH] task: link to lib.rs in spawn_blocking documentation (#2426) --- tokio/src/task/blocking.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tokio/src/task/blocking.rs b/tokio/src/task/blocking.rs index 9a22b0ffa..f9be1ead4 100644 --- a/tokio/src/task/blocking.rs +++ b/tokio/src/task/blocking.rs @@ -39,10 +39,9 @@ cfg_rt_threaded! { cfg_blocking! { /// Runs the provided closure on a thread where blocking is acceptable. /// - /// In general, issuing a blocking call or performing a lot of compute in a future without - /// yielding is not okay, as it may prevent the executor from driving other futures forward. - /// A closure that is run through this method will instead be run on a dedicated thread pool for - /// such blocking tasks without holding up the main futures executor. + /// More information about the blocking threads is available at [CPU-bound tasks and blocking code][blocking]. + /// + /// [blocking]: ../index.html#cpu-bound-tasks-and-blocking-code /// /// # Examples ///