diff --git a/weak/src/commonMain/kotlin/WeakRef.kt b/weak/src/commonMain/kotlin/WeakRef.kt index 8c136f5..6bc1e9d 100644 --- a/weak/src/commonMain/kotlin/WeakRef.kt +++ b/weak/src/commonMain/kotlin/WeakRef.kt @@ -111,6 +111,10 @@ interface WeakRef { * * The exact behavior of the returned object is platform-specific. * + * ### Thread-safety + * + * The reference returned by this function is thread-safe. + * * @see SoftRef For implementing caches */ expect fun WeakRef(value: T): WeakRef @@ -132,6 +136,10 @@ expect fun WeakRef(value: T): WeakRef * * The exact behavior of the returned object is platform-specific. * + * ### Thread-safety + * + * The reference returned by this function is thread-safe. + * * @see WeakRef For implementing mappers */ @Suppress("FunctionName")