Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

make multiple function calls at the same time js async

async function functionName() {
  try {
    let results = await Promise.all([function1(), function2(), function3()]);       //some more awaits below this point
  } catch(err) {
    console.log(err)
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiple #function #calls #time #js #async
ADD COMMENT
Topic
Name
1+8 =