refCounted
refCounted<
TResource>(options):RefCounted<TResource>
Defined in: packages/core/src/adapters/remote-pool.ts:79
Share one resource between connections: opened by the first, closed idleMs after the last
was released (or at once on shutdown). A connection arriving while it closes waits, then opens it
again. After a failed close the resource is unknown: the next connection opens it again and
the idle timer retries the close.
Type Parameters
Section titled “Type Parameters”TResource
Section titled “TResource”TResource
Parameters
Section titled “Parameters”options
Section titled “options”RefCountedOptions<TResource>
Returns
Section titled “Returns”RefCounted<TResource>