Hosanna UI API v1.30.2-next
    Preparing search index...

    Interface IInstancePool

    interface IInstancePool {
        get<T extends IReusable>(className: string, clazz?: new () => T): T;
        getClassDefaults(className: string): undefined | JsonData;
        getPoolCounts(): IInstancePoolCounts;
        prepopulate<T extends IReusable>(
            className: string,
            clazz: new () => T,
            count: number,
        ): void;
        release(item: IReusable): void;
    }

    Implemented by

    Index

    Methods

    • Type Parameters

      Parameters

      • className: string
      • Optionalclazz: new () => T

      Returns T

    • Snapshot of class-level

      Parameters

      • className: string

      Returns undefined | JsonData

      /

      initialisers for pooled reuse, keyed by pool class name. Stored on the pool (not on the constructor) so Roku builds work — function references there cannot carry expando properties.

    • Type Parameters

      Parameters

      • className: string
      • clazz: new () => T
      • count: number

      Returns void