code: function notifyCurrentDrainListener() {
          var listener = drainQueue.shift();
  
          if (listener) {
              drainStopping(listener);
              drainQueue[0] && drainStarting(drainQueue[0]);
              listener.complete();
          }
      }
docs: Notifies and removes the current drain listener