SingletonProvider

open class SingletonProvider<T>(factory: Factory<T>) : Provider<T>

A provider of instances of type T that are created by the given Factory and cached.

Since

1.0.0

Parameters

factory

The factory function that creates instances of type T.

Constructors

Link copied to clipboard
constructor(factory: Factory<T>)

Functions

Link copied to clipboard
open override fun provide(): T