iampool

0.1.4 • Public • Published

iampool

NPM Stable Version Build Status Test Coverage Dependency Status Node.js Version License

Install

npm i iampool

Usage

const pool = new Pool({
    acquire(cb) {
        // connection.createChannel(cb);
    },
    dispose(channel, cb) {
        // channel.close(cb);
    },
    max: 10,
    maxWaitingClients: 50,
    acquireTimeoutMs: 10000,
});
 
pool.acquire((err, channel) => {
    // ...
    pool.release(channel);
});

API

Documentation

Readme

Keywords

none

Package Sidebar

Install

npm i iampool

Weekly Downloads

0

Version

0.1.4

License

MIT

Last publish

Collaborators

  • amokrushin