0
function run(){
  console.log('hello');
}

Promise.allSettled([
    run(),
    run(),
  ])

executing this code 2 instances run instantly logging:

hello

hello

I want to settle the process in batch. how do I achieve this in Javascript?

0 Answers0