4 ms·
This is really awesome! I did have a question about this: > Javascript does support an Atomics API but it uses promises which are gross. Eww sick. With the e
by codelikeawolf 2y ago
This is really awesome!
I did have a question about this:
> Javascript does support an Atomics API but it uses promises which are gross. Eww sick.
With the exception of waitAsync[1], the Atomics APIs don't appear to use promises. I've used Atomics before and never needed to mess with any async/promise code. Is it using promises behind the scenes or is there something else I'm missing?
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/waitAsync https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Edit: formatting