W3cubDocs

/Kotlin

Package kotlin.native.ref

Types

Platform and version requirements: Native (1.3)

WeakReference

Class WeakReference encapsulates weak reference to an object, which could be used to either retrieve a strong reference to an object, or return null, if object was already destroyed by the memory manager.

class WeakReference<T : Any>

© 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.ref/index.html