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.
Can multiple instances of parallel steps observe the same data? For example, doing n things in parallel and doing something once all compete
-
-
Good question. The mental model is that it's possible to run every parallel section in its own thread. Access to shared state (e.g. `settledFetches` and `immediateFailure`) should be serialized via tasks. In this case, atomic increment is probably enough, though...
- Još 3 druga odgovora
Novi razgovor
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.