kotlin.collections.java.util.concurrent.ConcurrentMap.getOrPut

getOrPut

inline fun <K, V> ConcurrentMap<K, V>.getOrPut(
    key: K, 
    defaultValue: () -> V
): V

Platform and version requirements: JVM

Concurrent getOrPut, that is safe for concurrent maps.

Returns the value for the given 登录查看完整内容