Skip to content

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.

TResource

RefCountedOptions<TResource>

RefCounted<TResource>