4 ms·
There is Atomics.waitAsync which can be used on the main thread and just returns a promise. It is shipped at least in chrome.
by no_way 5y ago
There is Atomics.waitAsync which can be used on the main thread and just returns a promise. It is shipped at least in chrome.