@zwa73/utils 1.0.189 → 1.0.190

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.
@@ -403,6 +403,7 @@ class UtilFunc {
403
403
  let rejectFunc;
404
404
  const promise = new Promise((resolve, reject) => {
405
405
  resolveFunc = resolve;
406
+ rejectFunc = reject;
406
407
  });
407
408
  // 定义处理任务的函数
408
409
  const processTask = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/utils",
3
- "version": "1.0.189",
3
+ "version": "1.0.190",
4
4
  "description": "my utils",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -475,6 +475,7 @@ static queueProc<T>(flag: Keyable, task: () => Promise<T>): Promise<T> {
475
475
  let rejectFunc: (value: any | PromiseLike<any>) => void;
476
476
  const promise = new Promise<T>((resolve,reject) => {
477
477
  resolveFunc = resolve;
478
+ rejectFunc = reject;
478
479
  });
479
480
 
480
481
  // 定义处理任务的函数