tc39 / proposal-structs

JavaScript Structs: Fixed Layout Objects
http://tc39.es/proposal-structs/
622 stars 11 forks source link

Promise-returning lock methods? #55

Closed dead-claudia closed 1 month ago

dead-claudia commented 1 month ago

Something like a .lockAsync() on mutexes would be very nice. There's already precedent in Atomics.waitAsync(...), and it'd fit in better with the world of async.

dead-claudia commented 1 month ago

Missed https://github.com/tc39/proposal-structs/blob/main/ASYNC-LOCKING-WAITING.md