Extensions for java.util.concurrent.ConcurrentMap
getOrPut
Concurrent getOrPut, that is safe for concurrent maps.
fun <K, V> ConcurrentMap<K, V>.getOrPut(
key: K,
defaultValue: () -> V
): V
Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
Concurrent getOrPut, that is safe for concurrent maps.
fun <K, V> ConcurrentMap<K, V>.getOrPut(
key: K,
defaultValue: () -> V
): V