toothpick-runtime / toothpick / ThreadSafeProviderImpl

ThreadSafeProviderImpl

open class ThreadSafeProviderImpl<T : Any> : Provider<T>, Lazy<T>

A thread safe internal provider. It will be exposed outside of Toothpick.

Parameters

- the class of the instances provided by this provider.

Constructors

<init>

ThreadSafeProviderImpl(scope: Scope, clazz: Class<T>, name: String, isLazy: Boolean)

Functions

get

open fun get(): T