lib/mongodb/mongodb-core/lib/connection/pool.js
function waitForLogout(self, cb) {
    if (!self.loggingout) return cb();
    setTimeout(function() {
      waitForLogout(self, cb);
    }, 1);
  }
function waitForLogout(self, cb) {
    if (!self.loggingout) return cb();
    setTimeout(function() {
      waitForLogout(self, cb);
    }, 1);
  }
function waitForLogout ( self , cb ) { if ( ! self . loggingout ) return cb ( ) ; setTimeout ( function ( ) { waitForLogout ( self , cb ) ; } , 1 ) ; }
Wait for a logout in process to happen
Wait for a logout in process to happen