Blame view

apps/utils/sleep.js 122 Bytes
TaoHuang authored
1 2 3 4 5 6 7
export function sleep(ms) {
  return new Promise(resolve => {
    setTimeout(() => {
      resolve();
    }, ms);
  });
}