Atomics.wait(this.sleepBuffer, 0, 0, ms)
>Thrown in one of the following cases:
>If the current thread cannot be blocked (for example, because it's the main thread).
I guess that's why it's not so widely used