AcquiredSingleton.acquire

Gets the singleton T instance.

  1. Elem acquire(Elem new_t)
    struct AcquiredSingleton(T)
    acquire
    (
    lazy Elem new_t
    )
  2. Elem acquire(Elem new_t, void delegate(Elem) reset)

Parameters

new_t Elem

lazily initialised new resource

Return Value

Type: Elem

singleton T instance

Meta