Skip to content

Commit

Permalink
🐛 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
H2Sxxa committed Aug 1, 2024
1 parent a4e9ec7 commit 57496a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/_posts/async_block_concurrent.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async fn await_block() {
>
> https://docs.rs/tokio/latest/tokio/macro.join.html#runtime-characteristics
`join` 具有并发性, `spawn` 还具有并行性,对于I/O密集型任务,有一段等待返回数据的时间`join`/`spawn`性能差异不大,这也是异步在I/O密集型场景高效的原因。
`join` 具有并发性, `spawn` 还具有并行性,对于I/O密集型任务,有一段等待数据的时间`join`/`spawn`性能差异不大,这也是异步在I/O密集型场景高效的原因。

CPU密集型任务请使用 `spawn`

Expand Down

0 comments on commit 57496a9

Please sign in to comment.