lib/ConnectionPool.js
function () {
            this.__ending = true;
            var conn, fQueue = this.__freeObjects, count = this.count, ps = [];
            while ((conn = this.__freeObjects.dequeue()) !== undefined) {
                ps.push(this.closeConnection(conn));
            }
            var inUse = this.__inUseObjects;
            for (var i = inUse.length - 1; i >= 0; i--) {
                ps.push(this.closeConnection(inUse[i]));
            }
            this.__inUseObjects.length = 0;
            return new PromiseList(ps).promise();
        }
function () {
            this.__ending = true;
            var conn, fQueue = this.__freeObjects, count = this.count, ps = [];
            while ((conn = this.__freeObjects.dequeue()) !== undefined) {
                ps.push(this.closeConnection(conn));
            }
            var inUse = this.__inUseObjects;
            for (var i = inUse.length - 1; i >= 0; i--) {
                ps.push(this.closeConnection(inUse[i]));
            }
            this.__inUseObjects.length = 0;
            return new PromiseList(ps).promise();
        }
function ( ) { this . __ending = true ; var conn , fQueue = this . __freeObjects , count = this . count , ps = [ ] ; while ( ( conn = this . __freeObjects . dequeue ( ) ) !== undefined ) { ps . push ( this . closeConnection ( conn ) ) ; } var inUse = this . __inUseObjects ; for ( var i = inUse . length - 1 ; i >= 0 ; i -- ) { ps . push ( this . closeConnection ( inUse [ i ] ) ) ; } this . __inUseObjects . length = 0 ; return new PromiseList ( ps ) . promise ( ) ; }
Override to implement the closing of all connections.

@return {comb.Promise} called when all connections are closed.
Override to implement the closing of all connections .