刘zh
09/06/2025, 1:27 AMjava.util.concurrent
. However, the kotlinx-atomicfu library only has atomic base classes and no collection classes like ConcurrentHashMap
and ConcurrentLinkedQueue
. Is there any other library that can do this?🙏🏻Vidmantas Kerbelis
09/06/2025, 5:14 AMConccurrentMap
and ConcurrentSet
.
For LinkedQueue - no idea.Michael Paus
09/06/2025, 6:04 AM刘zh
09/06/2025, 11:35 AMMichael Paus
09/06/2025, 1:11 PMMichael Krussel
09/06/2025, 1:48 PMKtor concurrent map implementation. Please do not use it.I would love to see a port of the concurrent data structures from Java ported into the standard lib.
Michael Strasser
09/07/2025, 2:02 AMAndrewStone
09/07/2025, 4:30 PMMichael Krussel
09/08/2025, 2:02 PMCollections.syncrhonizedMap
.
But yeah, synchronized collections were typically not needed because you need the locking at a different level.