@creejs/commons-lang 2.1.26 → 2.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-dev.cjs +42 -2
- package/dist/cjs/index-dev.cjs.map +1 -1
- package/dist/cjs/index-min.cjs +1 -1
- package/dist/cjs/index-min.cjs.map +1 -1
- package/dist/esm/index-dev.js +42 -2
- package/dist/esm/index-dev.js.map +1 -1
- package/dist/esm/index-min.js +1 -1
- package/dist/esm/index-min.js.map +1 -1
- package/dist/umd/index.dev.js +42 -2
- package/dist/umd/index.dev.js.map +1 -1
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
- package/types/promise-utils.d.ts +2 -1
package/package.json
CHANGED
package/types/promise-utils.d.ts
CHANGED
|
@@ -125,9 +125,10 @@ export function parallelAllSettled(tasks: Function[], maxParallel?: number): Pro
|
|
|
125
125
|
* * One task failed, it will start next task immediately, Not Wait for the bulk(maxParallel) to complete
|
|
126
126
|
* @param {Array<Function|Promise<any>>} tasks - Array of async functions to execute
|
|
127
127
|
* @param {number} [maxParallel=5] - Maximum number of tasks to run in parallel
|
|
128
|
+
* @param {string} [failureMessage] - Error message when all tasks failed
|
|
128
129
|
* @returns {Promise<any>} Resolves with the result of the first successfully completed task
|
|
129
130
|
*/
|
|
130
|
-
export function parallelAny(tasks: Array<Function | Promise<any>>, maxParallel?: number): Promise<any>;
|
|
131
|
+
export function parallelAny(tasks: Array<Function | Promise<any>>, maxParallel?: number, failureMessage?: string): Promise<any>;
|
|
131
132
|
/**
|
|
132
133
|
* Creates a "Waiter" Object
|
|
133
134
|
* 1. wait the specified time
|