From 57496a91e691d5b47bf8aa0c60c814fc7d28fee4 Mon Sep 17 00:00:00 2001 From: H2Sxxa Date: Thu, 1 Aug 2024 10:08:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/async_block_concurrent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/async_block_concurrent.md b/source/_posts/async_block_concurrent.md index bb14166..1ef74f1 100644 --- a/source/_posts/async_block_concurrent.md +++ b/source/_posts/async_block_concurrent.md @@ -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`。