code: function enqueue(pool, executeFunction) {
    return new Promise(function(resolve) {
      pool.queue.push(function() {
        return Promise.resolve().then(executeFunction).then(resolve);
      });
    });
  }
docs: /* Defer function to run once all running and queued functions have run.