class AtomicReference<T>
An atomic reference to a frozen Kotlin object. Can be used in concurrent scenarious but frequently shall be of nullable type and be zeroed out (with compareAndSwap(get(), null)
) once no longer needed. Otherwise memory leak could happen.
An atomic reference to a frozen Kotlin object. Can be used in concurrent scenarious but frequently shall be of nullable type and be zeroed out (with compareAndSwap(get(), null)
) once no longer needed. Otherwise memory leak could happen.
AtomicReference(value_: T)
The referenced value. Gets the value or sets the new value. If new value is not null, it must be frozen or permanent object.
var value: T
Returns the string representation of this object.
fun toString(): String
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-atomic-reference/index.html