src/pool.js
function (options) {
        poolId++;

        return new Pool(
            options.name ? options.name + ' (pool #' + poolId + ')' : 'pool #' + poolId,
            options.factory,
            options.initialize || noop,
            options.firstAllocationNumber || 20,
            options.allocationNumber || 1
        );
    }
function (options) {
        poolId++;

        return new Pool(
            options.name ? options.name + ' (pool #' + poolId + ')' : 'pool #' + poolId,
            options.factory,
            options.initialize || noop,
            options.firstAllocationNumber || 20,
            options.allocationNumber || 1
        );
    }
function ( options ) { poolId ++ ; return new Pool ( options . name ? options . name + ' (pool #' + poolId + ')' : 'pool #' + poolId , options . factory , options . initialize || noop , options . firstAllocationNumber || 20 , options . allocationNumber || 1 ) ; }
Create an object pool
@param {Object} options Pool options (name, factory, initialize, firstAllocationNumber, allocationNumber)
@returns {Pool} Instance of the object pool
Create an object pool