Dormir mecanografiado
function delay(ms: number) {
return new Promise( resolve => setTimeout(resolve, ms) );
}
await delay(300);
VasteMonde
function delay(ms: number) {
return new Promise( resolve => setTimeout(resolve, ms) );
}
await delay(300);
await new Promise(resolve => setTimeout(resolve, 1000));