Include running function in current count in ConcurrentCaller log line

This commit is contained in:
Dan Stillman 2015-05-15 01:46:32 -04:00
parent f727b224e7
commit daad18c1b5

View file

@ -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));
}