Function registerGarbageCallback

  • Helper to register a callback which will be called, if the item is getting remove by the gc.

    Parameters

    • item: any

      The item to be collected by the gc.

    • callback: ((...args) => any)

      The callback to call.

        • (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns void

Generated using TypeDoc