async-proxy-pool

async-proxy-pool JS library on GitHub async-proxy-pool JS library on npm Download async-proxy-pool JS library

Asynchronous resource pool, allowing parallel use of resource proxies.

Version 0.1.4 License ISC
async-proxy-pool has no homepage
async-proxy-pool JS library on GitHub
async-proxy-pool JS library on npm
Download async-proxy-pool JS library

async-proxy-pool

Promise-based asynchronous resource pool allowing shared resource proxies.

Extends shaunc/async-pool.

Installation

npm install async-proxy-pool

Usage.

In addition to AsyncPool.use() there is a AsyncProxyPool.share() which gets a proxy to a resource, and issues method calls on onresources when they are available. This can be useful if you want to pass around a resource, like a database connection, without depleting the supply, and you don't care about serializing your method calls.