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 once no longer needed. Otherwise memory leak could happen if the atomic reference is a part of a reference cycle.
Creates a new atomic reference pointing to given ref.
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–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-atomic-reference/index.html