Optional createOptional defaultThe default number of milliseconds acquire should wait to resolve before being rejecting. Defaults to Infinity.
Optional defaultThe default number of milliseconds release should wait to resolve before being rejecting. Defaults to Infinity.
Optional destroyThe maximum number of seconds after a resource is scheduled to be retired to allow existing leases to complete. Defaults to Infinity.
Optional destroyThe number of milliseconds destroy should wait to resolve before being considered a failure. Defaults to Infinity.
Optional maxThe maximum number of leases to issue for a given resource. Defaults to 1.
Optional maxThe maximum number of acquire requests to allow in the queue before future requests are rejected. Defaults to Infinity.
Optional maxThe maximum number of resources to have in the pool at once. Retired resources count towards this limit. Defaults to Infinity.
Optional minThe minimum number of resources to keep alive in the pool at once. Defaults to 0.
Optional resourceThe method to use for allocating concurrent leases on resources. Defaults to LAZY.
Optional retireThe number of seconds a specific resource should be considered usable before retiring it. Defaults to Infinity.
Optional retireThe number of times to lease a specific resource to a requestor before retiring it. Defaults to Infinity.
Optional silenceAutomatically catch errors thrown by release. Defaults to false.
Optional wallThe implementation of wall-time to use. Mostly used for testing. Defaults to Date
Optional onThe function to invoke immediately before a resource is leased. A resource will not be acquired until the promise resolves, subject to the acquire timeout restrictions. If the promise rejects, the resource WILL NOT be acquired.
Optional onThe function to invoke immediately before a resource is released. A resource will not be released until this method completes, subject to the release timeout restrictions. If the promise rejects, the resource WILL STILL be released.
Generated using TypeDoc
The number of milliseconds create should wait to resolve before being considered a failure. Defaults to Infinity.