Parallel promises working as intended

- revised code to now generate a working implementation of the parallel
promise pattern
- noticed that the results of the previous implementation were stopping
slightly early (appeared to trigger resolve when not all promises were
resolved)
- this was repaired by pushing all promises into the array at the same
time rather than spawning the process in one location and then adding
the remainder of tasks in another