Documentation
    Preparing search index...

    Function trackDisposable

    • Registers resource so a GC without disposeTracked is reported as a leak. Returns a numeric id for reportFinalized; 0 in production.

      creationSite is recorded as-is when supplied. Otherwise the stack at this call is captured and recorded as the site.

      Parameters

      • resource: object
      • label: string
      • OptionalcreationSite: string

      Returns number