[K/N] Mark WeakReference with ExperimentalNativeApi

As a part of efforts to stabilize Native stdlib #KT-55765.
This commit is contained in:
Abduqodiri Qurbonzoda
2023-04-03 15:48:12 +03:00
committed by Space Team
parent 6f5504e59b
commit 16078ae8e8
6 changed files with 11 additions and 2 deletions
@@ -5,11 +5,14 @@
package kotlin.native.ref
import kotlin.experimental.ExperimentalNativeApi
/**
* 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.
*/
@ExperimentalNativeApi
public class WeakReference<T : Any> {
/**
* Creates a weak reference object pointing to an object. Weak reference doesn't prevent