Amazon Vinyl
    Preparing search index...

    Class GlobalRegistry

    Manages global initializers.

    Index
    • Registers an initializer that will be invoked during global state initialization.

      Type Parameters

      Parameters

      • initializer: T

      Returns T

    • Resets all registered initializers and sets this registry back to its pre-initialized state. This is typically only done within unit tests, but may be called if all players are disposed and the consumer intends to teardown global state.

      Returns void

    • Removes a global ref from the registry. May be called at any time.

      Parameters

      Returns boolean

      Returns true if the global ref was removed.