timeout.js 100 B

123
  1. export function timeout(ms = 1000) {
  2. return new Promise((_, reject) => setTimeout(reject, ms));
  3. }