mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2026-08-22 06:03:27 +08:00
Updated 'src/concurrency/message_passing'.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user