Function that delays execution for x milliseconds. Requires nodejs 9.3 or higher. Utilizes Atomics.wait.