Currently, I spawn a bunch of actors to do some long running task. I put these into a List, then call Task.WaitAll() to collect the results.
However, I want to collect the results as each Actor completes its task (rather than wait for every actor to finish and aggregate it at the end).
I was thinking about using reliable collections, but how do I share a reliable collection between all actors?
Thanks!
Actors are separate entities by design so you can't simply 'share' a collection between several instances. A couple of workarounds that cross my mind -