News for hackers. Stuff that matters.
Re:V8 adds support for top-level await by tlrobinson on Wednesday September 25, 2019 @12:20AM (#21067569)
JavaScript uses non-preemptive multitasking. It's trivial to write locking primitives. Indeed there are already many: https://www.npmjs.com/search?q=mutex

You could even have a method decorator (https://github.com/tc39/proposal-decorators) that emulates Java's "synchronized" keyword.

There are no comments on this comment yet.