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
Concurrent getOrPut, that is safe for concurrent maps.
fun <K, V> ConcurrentMap<K, V>.getOrPut(
key: K,
defaultValue: () -> V
): V