@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creejs/commons-lang",
3
- "version": "2.1.26",
3
+ "version": "2.1.28",
4
4
  "description": "Commons Utils About Language, used inside creejs",
5
5
  "keywords": [
6
6
  "commons",
@@ -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