function delay(
  ms,
) {
  return new Promise((res) =>
    setTimeout(() => {
      res();
    }, ms)
  );
}
/* Resolves after the given number of milliseconds. */
Resolves after the given number of milliseconds.
Resolves after the given number of milliseconds .
function delay(
  ms,
) {
  return new Promise((res) =>
    setTimeout(() => {
      res();
    }, ms)
  );
}
function delay ( ms , ) { return new Promise ( ( res ) => setTimeout ( ( ) => { res ( ) ; } , ms ) ) ; }
Resolves after the given number of milliseconds.
Resolves after the given number of milliseconds .