Mutex in JavaScript – does this look like a correct implementation?
Not an entirely serious question, more of a shower thought: JavaScript’s await
keyword should allow for something that feels an awful lot like a mutex in your average “concurrent language”.