On Thursday, 1 October 2020 at 00:00:06 UTC, mw wrote:
On Wednesday, 30 September 2020 at 20:13:47 UTC, IGotD- wrote:
[...]
I think declaring the container and item as `shared` is the D's
encouraged way of sharing data among different threads.
[...]
then just cast the `shared` away: cast()data.
[...]
I think using `shared` is the D's encouraged way.
If there is a better way do this in D, I'd want to know it too.
BTW, this is what I learnt from my previous thread:
https://forum.dlang.org/post/nlhjzafnmywrgkyjl...@forum.dlang.org