synchronized

fun <T> synchronized(action: MutableMap<K, V>.() -> T): T

Synchronizes an action block on the MutableMap

Return

The result of the action block

Parameters

action

The action block to execute concurrently