3 ms·
I just found out you can sync sleep in JavaScript. I’m using it to implement multi-process sync file locks that need to interoperate with a large non-async fram
by jitl 2y ago
I just found out you can sync sleep in JavaScript. I’m using it to implement multi-process sync file locks that need to interoperate with a large non-async framework (eslint).
Atomics.wait(this.sleepBuffer, 0, 0, ms)