File: index.js

package info (click to toggle)
node-generic-pool 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 240 kB
  • ctags: 12
  • sloc: makefile: 16; sh: 2
file content (14 lines) | stat: -rw-r--r-- 419 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const Pool = require('./lib/Pool')
const Deque = require('./lib/Deque')
const PriorityQueue = require('./lib/PriorityQueue')
const DefaultEvictor = require('./lib/DefaultEvictor')
module.exports = {
  Pool: Pool, 
  Deque: Deque,
  PriorityQueue: PriorityQueue,
  DefaultEvictor: DefaultEvictor,
  createPool: function(factory, config){
    return new Pool(DefaultEvictor, Deque, PriorityQueue, factory, config)
  }
}