I have working code in VueJS however need a certain block to run sequentially:
return Promise.all(this.vm.multipleActions.run.map(function (testRun) {
return self.initiateTest(testRun);
}))
Currently it seems this runs in parallel - so in initiateTest() I insert records into a DB however parallel gets me random ordering instead of the testRuns in order (which I'd like to preserve).
I can observe the AJAX calls in initiateTest() made randomly due to the parallel nature.