singleton

Generate a @property function which creates/returns a thread-local singleton of a class with the given arguments.

@property
T
singleton
(
T
args...
)
()
if (
is(typeof(new T(args)))
)

Meta