comment-value
comment-value copied to clipboard
Handle promises better
For example
const promises = [Promise.resolve(20), Promise.resolve(30)]
// promises: [{},{}]
Promise.all(promises)
.then(console.log)
should produce
const promises = [Promise.resolve(20), Promise.resolve(30)]
// promises: [Promise(20), Promise(30)]
Hmm, does this mean that we need to collect all variable promises and wait for them after the end of the execution?