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?
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?
