Package io.ktor.util.collections
Types
Link copied to clipboard
open class ConcurrentCollection<E>(delegate: MutableCollection<E>, lock: Lock) : MutableCollection<E>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
class ConcurrentMap<Key : Any, Value : Any>(lock: Lock, initialCapacity: Int) : MutableMap<Key, Value>
Content copied to clipboard
Ktor concurrent map implementation. Please do not use it.
Link copied to clipboard
class ConcurrentSet<Key : Any>(lock: Lock, delegate: ConcurrentMap<Key, Unit>) : MutableSet<Key>
Content copied to clipboard
Concurrent set implemented on top of ConcurrentMap
Link copied to clipboard
Lock-free Multiply-Producer Single-Consumer Queue. Note: This queue is NOT linearizable. It provides only quiescent consistency for its operations.
Functions
Link copied to clipboard
Link copied to clipboard
Updates variable atomically using the specified function of its value and returns its new value.