AsyncLazy

class AsyncLazy<T>(initializer: suspend () -> T)

Shares an initialization attempt between callers and caches a successful result. Failed or cancelled attempts are reported to their callers; a later call can retry.

Constructors

Link copied to clipboard
constructor(initializer: suspend () -> T)

Functions

Link copied to clipboard
suspend fun get(): T
Link copied to clipboard
operator fun getValue(thisRef: Any?, property: KProperty<*>): T