Skip to content
Snippets Groups Projects
Unverified Commit f83f6388 authored by Palash Ahuja's avatar Palash Ahuja Committed by GitHub
Browse files

task: link to lib.rs in spawn_blocking documentation (#2426)

parent 13974068
No related branches found
No related tags found
No related merge requests found
......@@ -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
///
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment