What do you suggest I use instead? I could just use a for loop, but I don't really see what advantage that offers. Readability? Functional advantage?

Sent from my iPhone

On Aug 27, 2013, at 3:44 PM, Robert Chiniquy <notifications@github.com> wrote:

> In lib/driver.js:
> 
> > -ConnectionInPool.prototype.isHealthy = function() {
> > +ConnectionInPool.prototype.onConnected = function(callback) {
> > +  if (this._onConnected === undefined) {
> > +    this._onConnected = [];
> > +  }
> > +  this._onConnected.push(callback);
> > +};
> > +
> > +ConnectionInPool.prototype.clearOnConnectedQueue = function() {
> > +  var self = this;
> > +  if (this._onConnected === undefined) {
> > +    return;
> > +  }
> > +  async.eachSeries(this._onConnected, function(cb, callback) {
> > +    cb();
> > +    callback();
> This doesn't seem to be an async workflow, why use async?
> 
> —
> Reply to this email directly or view it on GitHub.