halfmagic
8/5/2019 - 1:17 AM

Blocking timer

function wait (ms) {
  return new Promise(resolve => setTimeout(() => resolve(), ms))
}