Backstage
Docs
Github
Preparing search index...
@backstage/version-bridge
getOrCreateGlobalSingleton
Function getOrCreateGlobalSingleton
getOrCreateGlobalSingleton
<
T
>
(
id
:
string
,
supplier
:
()
=>
T
)
:
T
Serializes access to a global singleton value, with the first caller creating the value.
Type Parameters
T
Parameters
id
:
string
supplier
:
()
=>
T
Returns
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Docs
Github
Backstage
Loading...
Serializes access to a global singleton value, with the first caller creating the value.