[K/N] Mark WeakReference with ExperimentalNativeApi
As a part of efforts to stabilize Native stdlib #KT-55765.
This commit is contained in:
committed by
Space Team
parent
6f5504e59b
commit
16078ae8e8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user