JS adiciona atraso com as promessas

await new Promise(resolve => setTimeout(resolve, 1000));
gaz_edge