scheduler.yield()
Also written: yield
A browser function that pauses a long-running task so the browser can handle input and paint, then resumes the task where it left off. It is not available in Safari, so code usually falls back to a `setTimeout`-based promise when it is missing.