processRevertableTasks

Function

Processes an Array of Promise. When all IRevertableTaskResult are IRevertableTaskSuccess, it resolves an Array of all result values. If any IRevertableTaskResult are IRevertableTaskFailed, it reverts all IRevertableTaskSuccess and rejects with the first IRevertableTaskFailed error

Processes an Array of Promise. When all IRevertableTaskResult are IRevertableTaskSuccess, it resolves an Array of all result values. If any IRevertableTaskResult are IRevertableTaskFailed, it reverts all IRevertableTaskSuccess and rejects with the first IRevertableTaskFailed error

Parameters

Parameter Type Default Notes
revertableTasks Required Array<Promise<IRevertableTaskResult>>

Returns

Promise<any[]>

Function defined in common/src/utils/revertable-tasks.ts:41