Exemplo n.º 1
0
        f.then(function (isOk) {
          queue.urlsCurrentlyProcessing -= 1;

          if (!isOk) {
            lines[url.data.lineNumber] = null;
          }

          if ((queue.getPendingLength() + queue.getQueueLength()) === 0 && queue.urlsCurrentlyProcessing === 0) {
            resolve();
          }
        });
 isBusy() {
     return this.compileQueue.getPendingLength() > 0 || this.compileQueue.getQueueLength() > 0;
 }