Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

await multiple promises

Promise.allSettled([
    Promise.resolve('a'),
    Promise.reject('b')
]).then(console.log)
 Run code snippetHide results
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #await #multiple #promises
ADD COMMENT
Topic
Name
9+3 =