mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
task: fix two typos (#7913)
This commit is contained in:
@@ -96,7 +96,7 @@ cfg_rt! {
|
||||
/// asynchronously. When you run CPU-bound code using `spawn_blocking`, you
|
||||
/// should keep this large upper limit in mind. When running many CPU-bound
|
||||
/// computations, a semaphore or some other synchronization primitive should be
|
||||
/// used to limit the number of computation executed in parallel. Specialized
|
||||
/// used to limit the number of computations executed in parallel. Specialized
|
||||
/// CPU-bound executors, such as [rayon], may also be a good fit.
|
||||
///
|
||||
/// This function is intended for non-async operations that eventually finish on
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
//! #### `spawn_blocking`
|
||||
//!
|
||||
//! The `task::spawn_blocking` function is similar to the `task::spawn` function
|
||||
//! discussed in the previous section, but rather than spawning an
|
||||
//! discussed in the previous section, but rather than spawning a
|
||||
//! _non-blocking_ future on the Tokio runtime, it instead spawns a
|
||||
//! _blocking_ function on a dedicated thread pool for blocking tasks. For
|
||||
//! example:
|
||||
|
||||
Reference in New Issue
Block a user