Function RefCount

  • A utility Resource that will only destroy itself once all consumers of the Resource have been destroyed.

    For example, when used on a service, multiple components may access a WebSocket and upon initial access, the WebSocket is setup, but it is not torn down until the last accessor is turn down.

    Parameters

    • this: object
    • callback: Fn<object>

    Returns RefcountInstance

Generated using TypeDoc