Avatar
omochimetaru 9/21/2023 7:33 AM
Sadly this is not what the concept of Sendable implies. Sendable is required any time we pass the value across concurrency domains, which we do here.
コンセプトがそうではないというのはわかるけど、 そのコンセプトが実現したいことは結局shared mutable stateへの同時アクセスを防ぐ事であり、 だから struct もしくは immutable class である事を要求しているのであって、 そもそも同時アクセスしない状況なら問題は起きないんじゃあなかろうか
7:34 AM
なんか説得力のある実際の unsafe send 事例があればいいんだけど・・・