3 ms·
I'm sure there are complexities that I hadn't considered yet, but I don't see how a race condition can be one of them. Outside of workers, there's really no wa
by recursive 5y ago
I'm sure there are complexities that I hadn't considered yet, but I don't see how a race condition can be one of them. Outside of workers, there's really no way to simultaneous concurrency in js.
Order of dispatch to subscribers seems like it create similar problems, although it would be fully deterministic, rather than a race.
Anyway, thanks for your insight.
- jolux 5y ago> Outside of workers, there's really no way to simultaneous concurrency in js. You're largely right but this part is mostly wrong in practice because of async. You can create race-like conditions very easily with promises/async if you're not careful. > Order of dispatch to subscribers seems like it create similar problems, although it would be fully deterministic, rather than a race. Yes, that's closer to what I meant. Not a data race, but you could end up in a loop.