Atraso no JavaScript sem aguardar

const syncWait = ms => {
    const end = Date.now() + ms
    while (Date.now() < end) continue
}
Kind Kouprey