singleAssign
Deprecated
Duplicates AtomicDelegates.singleSetReference, which is available on every platform.
Replace with
import com.pambrose.common.delegate.AtomicDelegates
Content copied to clipboard
AtomicDelegates.singleSetReference<T>()Content copied to clipboard
Returns a property delegate for a read/write property that can be assigned only once. This implementation is thread-safe and prevents race conditions.
It is the delegate AtomicDelegates.singleSetReference returns, which is available on every platform, not only the JVM.
Throws
if the property is assigned more than once