reset

suspend fun reset(block: suspend (Map<K, V>) -> Map<K, V>)

Reset the content of the map entirely.

Parameters

block

A block that will be passed the current content of the map (as a Map). The map that this block returns will turn into the new content.