4 ms·
> 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.
by 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.