Package io.ktor.util.collections

Types

Link copied to clipboard
expect class ConcurrentMap<Key, Value>(initialCapacity: Int) : MutableMap<Key, Value>

Ktor concurrent map implementation. Please do not use it.

actual class ConcurrentMap<Key, Value>(initialCapacity: Int) : MutableMap<Key, Value>

Ktor concurrent map implementation. Please do not use it.

actual class ConcurrentMap<Key, Value>(initialCapacity: Int) : MutableMap<Key, Value>

Ktor concurrent map implementation. Please do not use it.

actual class ConcurrentMap<Key, Value>(initialCapacity: Int) : MutableMap<Key, Value>

Ktor concurrent map implementation. Please do not use it.

Link copied to clipboard
class CopyOnWriteHashMap<K : Any, V : Any>

This is an internal implementation for copy-on-write concurrent map. It is very limited since it is not intended as general purpose implementation.

Link copied to clipboard
class LockFreeMPSCQueue<E : Any>

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
fun <Key : Any> ConcurrentSet(): MutableSet<Key>

Concurrent set implemented on top of ConcurrentMap

Link copied to clipboard
fun <V> sharedList(): MutableList<V>
Link copied to clipboard
fun <T> sharedListOf(vararg values: T): MutableList<T>
Link copied to clipboard
fun <K : Any, V : Any> sharedMap(initialCapacity: Int = 8): MutableMap<K, V>