ixfx
    Preparing search index...

    Class PoolUser<V>

    A use of a pool resource

    Has two events, disposed and released.

    Type Parameters

    • V

    Hierarchy (View Summary)

    Index

    Accessors

    • get elapsed(): number

      Returns elapsed time since last 'update'

      Returns number

    • get isDisposed(): boolean

      Returns true if instance is disposed

      Returns boolean

    • get isExpired(): boolean

      Returns true if this instance has expired. Expiry counts if elapsed time is greater than userExpireAfterMs

      Returns boolean

    • get isValid(): boolean

      Returns true if instance is neither disposed nor expired

      Returns boolean

    Constructors

    Methods

    • Internal

      Parameters

      • reason: string
      • data: V

      Returns void

    • Resets countdown for instance expiry. Throws an error if instance is disposed.

      Returns void

    • Release this instance

      Parameters

      • reason: string

      Returns void

    • Returns a human readable debug string

      Returns string

    Properties

    key: string

    User key

    resource: Resource<V>

    Resource being used