From 7ff10ca84b3ba17b3184265417be20cbdbe1a1dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Sat, 27 Dec 2025 19:23:16 +0100 Subject: [PATCH] docs(weak): Clarify the thread-safety of WeakMap See #180 --- weak/src/commonMain/kotlin/WeakMap.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weak/src/commonMain/kotlin/WeakMap.kt b/weak/src/commonMain/kotlin/WeakMap.kt index efe30ec..88890af 100644 --- a/weak/src/commonMain/kotlin/WeakMap.kt +++ b/weak/src/commonMain/kotlin/WeakMap.kt @@ -37,6 +37,10 @@ import kotlin.reflect.KProperty * * The default implementation is available via the top-level [WeakMap] function. * Other implementations are available in the `algorithms` subpackage. + * + * ### Thread-safety + * + * Implementations of this interface are **not thread-safe**. */ interface WeakMap { -- 2.51.2