All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.caesarealabs.rpc4k.runtime.implementation.Utils.kt Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
package com.caesarealabs.rpc4k.runtime.implementation

import com.caesarealabs.rpc4k.runtime.platform.ConcurrentQueue

internal fun  MutableMap>.concurrentAdd(
    key: K,
    value: V
) {
    val list = this[key]
    if (list == null) this[key] = ConcurrentQueue().apply { add(value) }
    else list.add(value)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy