You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My suggestion is to substitute them with Immutable Collections Library for Kotlin, that are safe for parallel read, and can be made safe for parallel writes with a global lock on the collection on write using a Mutex.
This library is fully multi-platform and has also It is NOT an additional dependency because it is already used under the hood in the implementation of CompositionLocal in androidx.compose.runtime
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the current code ThreadSafeList and ThreadSafeMap have implementations only for the JVM,
My suggestion is to substitute them with Immutable Collections Library for Kotlin, that are safe for parallel read, and can be made safe for parallel writes with a global lock on the collection on write using a Mutex.
This library is fully multi-platform and has also It is NOT an additional dependency because it is already used under the hood in the implementation of CompositionLocal in androidx.compose.runtime
Beta Was this translation helpful? Give feedback.
All reactions