I have an array with callbacks functions, so an Array<Function> | Array<AsyncFunction>
. I'm trying to find a way calling these callbacks in parallel
I know Promise.all
kind of does that, if I had a list of promises. But I have not been successful in making that work with my input
So to add a bit more detail:
Let's say I have an array of anonymous functions like so
let callbacks = [
() => {console.log('callback')},
() => {console.log('another callback');
() => {console.log('final callback');
];
What would be the best way to execute those callbacks in parallel?