Updated 'src/concurrency/message_passing'.

This commit is contained in:
Hector PENG
2026-04-06 18:42:06 +08:00
parent 7e78b2014e
commit c8ebdb9dfb
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ fn main() {
for val in vals {
tx1.send(val).unwrap();
thread::sleep(Duration::from_secs(1));
thread::sleep(Duration::from_millis(500));
}
});

View File

@@ -100,7 +100,7 @@
- [无惧并发](Ch16_Fearless_Concurrency.md)
- [使用线程同步运行代码](concurrency/threads.md)
- [使用消息传递在线程间传输数据](concurrency/message_passing.md)
- [通过消息传递在线程间传输数据](concurrency/message_passing.md)
- [共用状态的并发](concurrency/shared-state.md)
- [使用 `Sync` 与 `Send` 的可扩展并发](concurrency/extensible_concurrency.md)