Platform and version requirements: Native (1.3)
AtomicReference(value_: 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.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.