Concurrency
Francesco Mecca
me at francescomecca.eu
Fri May 22 21:16:12 UTC 2020
On Friday, 22 May 2020 at 14:31:05 UTC, JOEL wrote:
> [...]
These kind of questions should go to the Learn section of the
forum.
Also, what you are trying to accomplish is not exactly clear and
the example code that you give doesn't compile without
modifications.
One possible cause of your error is the fact that you send a
tuple (tid + int) not a single int.
I tried to give a fixed version of your code that used
receive(...) here:
https://gist.github.com/FraMecca/2f062ed15eedd5320d403c5b518878c4
You should also signal to the other process that it should stop
looping and exit, otherwise an exception get thrown.
More information about the Digitalmars-d
mailing list