@studiokeywi/banjo - v0.0.1
    Preparing search index...

    Module pool

    A utility for creating object pool that utilize the proposed explicit resource management API to clear and restore objects to the pool when unused

    studioKeywi

    Interfaces

    ObjectPool

    An object pool consists of a containing array using a (pseudo-)free list to provide reusable objects of a given type

    PoolConfig

    Configuration to provide a new object pool

    PoolNode

    Wrapper type for the Disposable interface an a linked list node

    Type Aliases

    Pooled

    Wrapper type for a given object as a PoolNode for lifecycle management

    Functions

    createPool

    Create a new fixed-size object pool for a given type. Intended to be used with the using keyword for automatic disposal of pooled objects.