spawn X different workers & wait for results from all of them
Robert M. Münch via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Sep 3 09:50:21 PDT 2015
Hi, I'm not sure how to best implement the following:
1. I have 4 different tasks to do.
2. All can run in parallel
3. Every task will return some result that I need
Now how to best do it? When using receive() it fires on the first hit
and the function continues. It's like a receive(OR), one hit and it's
done. So, I would need something like a receive(ALL) that continues
only of all results (messages) have been received.
Is something like this available or do I have to build it myself?
--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
More information about the Digitalmars-d-learn
mailing list