tc39 / proposal-atomics-wait-async

"asynchronous atomic wait" for ECMAScript
https://tc39.github.io/proposal-atomics-wait-async/
Other
90 stars 18 forks source link

This can be used to re-implement timer APIs such as `setTimeout` #33

Open dead-claudia opened 2 years ago

dead-claudia commented 2 years ago

Ref: https://es.discourse.group/t/atomics-wait-waitasync-as-native-settimeout/1120

It may be worth considering the security implications of this, if you haven't already. (Obviously, SES won't be impacted as it already denies SharedArrayBuffer.) Also may be worth considering the philosophical implications of this, as I've seen suggestions and proposals for implementing such APIs as core primitives repeatedly shot down.