exporting promiseArray