LazyDeferredImpl

internal class LazyDeferredImpl<T>(val action: suspend () -> T, val lock: Mutex) : LazyDeferred<T> (source)

Constructors

Link copied to clipboard
constructor(action: suspend () -> T, lock: Mutex)

Properties

Link copied to clipboard
Link copied to clipboard
private var _value: T?
Link copied to clipboard
private val action: suspend () -> T
Link copied to clipboard
open override val isCompleted: Boolean
Link copied to clipboard
private val lock: Mutex

Functions

Link copied to clipboard
Link copied to clipboard
open suspend override fun await(): T
Link copied to clipboard
open override fun getCompleted(): T

Immediately returns the deferred value if already completed.