Interface Pool<TPoolItem, TDiagnostics>

Type Parameters

Hierarchy

  • Pool

Methods

  • Acquires a resource from the pool, waits until a resource is available before resolving.

    Parameters

    Returns Promise<TPoolItem>

  • Destroys all resources in the pool.

    Returns Promise<void>

  • Returns information about the internal state of the pool.

    Returns TDiagnostics

  • Releases a resource back to the pool, waits until necessary cleanup has been performed before resolving.

    Parameters

    Returns Promise<void>

  • Releases a resource back to the pool and retires it (makes it unavailable for future use).

    Parameters

    Returns Promise<void>

Generated using TypeDoc