Spaces:
Running
Running
File size: 221 Bytes
3c778ff | 1 2 3 4 5 6 7 8 9 | /**
* Returns a Promise that resolves after at least one tick of the
* Macro Task Queue occurs.
*/
export const waitForTick = (): Promise<void> =>
new Promise((resolve) => {
setTimeout(() => resolve(), 0);
});
|