utiller 1.0.137 → 1.0.138
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/lib/pooller/index.js
CHANGED
|
@@ -685,8 +685,8 @@ var InfinitePool = /*#__PURE__*/function () {
|
|
|
685
685
|
tasks = self.queueOfExecutingTask.filter(function (each) {
|
|
686
686
|
return _lodash["default"].isEqual(each.state, "NOT");
|
|
687
687
|
}).map(function (each) {
|
|
688
|
-
var
|
|
689
|
-
return
|
|
688
|
+
var taskWrapper = each.task;
|
|
689
|
+
return taskWrapper();
|
|
690
690
|
});
|
|
691
691
|
/** Util.appendInfo(`\n\n正要執行的隊列`,self.queueOfExecutingTask) */
|
|
692
692
|
|
|
@@ -795,6 +795,8 @@ var InfinitePool = /*#__PURE__*/function () {
|
|
|
795
795
|
var callbackWrapper = _this.mapOfHashNCallbackWrapper[hash];
|
|
796
796
|
|
|
797
797
|
if (callbackWrapper !== undefined) {
|
|
798
|
+
_this.printLogMessage("5644153248, removeResolveOrRejectPromiseByHash \u62FF\u6389\u4E86\u5B8C\u6210\u7684\u4EFB\u52D9(".concat(_this.getLogMessageOfTaskHash(hash), ")"));
|
|
799
|
+
|
|
798
800
|
callbackWrapper(result);
|
|
799
801
|
delete _this.mapOfHashNCallbackWrapper[hash];
|
|
800
802
|
}
|
|
@@ -802,7 +804,7 @@ var InfinitePool = /*#__PURE__*/function () {
|
|
|
802
804
|
_this.removePromiseFromExecutingQueue(hash);
|
|
803
805
|
});
|
|
804
806
|
(0, _defineProperty2["default"])(this, "removePromiseFromExecutingQueue", function (hash) {
|
|
805
|
-
_this.printLogMessage("QueueOfExecutingTask \u62FF\u6389\u4E86\u5B8C\u6210\u7684\u4EFB\u52D9 ".concat(_this.getLogMessageOfTaskHash(hash)));
|
|
807
|
+
_this.printLogMessage("56448412, QueueOfExecutingTask \u62FF\u6389\u4E86\u5B8C\u6210\u7684\u4EFB\u52D9 ".concat(_this.getLogMessageOfTaskHash(hash)));
|
|
806
808
|
|
|
807
809
|
_lodash["default"].remove(_this.queueOfExecutingTask, function (each) {
|
|
808
810
|
return _lodash["default"].isEqual(hash, each.hash);
|
package/package.json
CHANGED