Include running function in current count in ConcurrentCaller log line
This commit is contained in:
parent
f727b224e7
commit
daad18c1b5
1 changed files with 3 additions and 2 deletions
|
@ -107,10 +107,11 @@ ConcurrentCaller.prototype.fcall = function (func) {
|
|||
return deferred.promise;
|
||||
}
|
||||
|
||||
this._log("Running function (" + this._numRunning + " current < " + this._numConcurrent + " max)");
|
||||
this._numRunning++;
|
||||
|
||||
// Otherwise run it now
|
||||
this._numRunning++;
|
||||
this._log("Running function (" + this._numRunning + "/" + this._numConcurrent + ")");
|
||||
|
||||
return this._onFunctionDone(Promise.try(func));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue