process

suspend fun process(timeoutMs: Long? = null, block: suspend (Pair<K, V>) -> PersistentMap.ProcessResult<Pair<K, V>>)

Process items in the map one at a time. This is similar to reset but instead of handling the content of the entire map it surfaces each item one at a time. The timeout is applied to each individual item rather than the entire map like it does in reset.