Backstage
    Preparing search index...

    Function getOrCreateGlobalSingleton

    • Serializes access to a global singleton value, with the first caller creating the value.

      Type Parameters

      • T

      Parameters

      • id: string
      • supplier: () => T

      Returns T