singleton {injectoR}R Documentation

Singleton scope, bindings of this scope are provided once, on initial demand

Description

Singleton scope, bindings of this scope are provided once, on initial demand

Usage

singleton(provider)

Arguments

provider

unscoped delegate, no argument function responsible for provision

Examples

define (three = function () 3, scope = singleton, binder = binder ())

[Package injectoR version 0.2.4 Index]