SingletonHolder

constructor(creator: (A) -> T)

Creates a holder that builds the instance with creator on first use.

Type Parameters

T

the singleton type.

A

the construction argument type.