Public service announcement: steps running in parallel should not be reading, much less modifying, any state directly observable outside those steps. Anything like that needs to happen via tasks.
-
-
And in particular, the observable behavior assuming the increments are atomic is no different from the case when tasks are used. Since nothing outside this algorithm can observe the state, I think it's OK.
-
Agreed. I didn't want to use tasks for synchronisation in this case because that suggests a return to the main that isn't necessary (until later in the process)
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.