Rustの並列性がわからん
#Rust
基礎編
https://doc.rust-jp.rs/the-rust-programming-language-ja/1.6/book/concurrency.html
メッセージパッシング
https://doc.rust-jp.rs/book/second-edition/ch16-02-message-passing.html
lockとtry_lockの違い
https://totem3.hatenablog.jp/entry/2017/05/10/210000
lockは待つ。try_clokは待たないっぽい
FnMutの中でcopyしないmove outがしたい
thread::spawnしたら?
https://stackoverflow.com/questions/40384274/rust-mpscsender-cannot-be-shared-between-threads
SenderはSendを実装しない(同一スレッドである設計)
https://users.rust-lang.org/t/error-e0277-cannot-be-shared-between-threads-safely/17276
FnMutでCopy無いとmove out
https://stackoverflow.com/questions/28521637/how-can-i-move-a-captured-variable-into-a-closure-within-a-closure