I need to have a bunch of functions complete some tasks and in a final function do something with the results.
I was thinking of using async / await?
async function dosomething() { // do stuff // await till finished then grab the result } async function dosomethingelse() { // do stuff // await till finished then grab the result } function final() { if (dosomething_result) { // do something } etc... } So basically final() wouldn't run till dosomething and dosomethingelse have completed.
I hope I have explained myself properly.
My question is...How would I do this with Async / Await if it's the way to do this I mean.
Promise.allinfinal