vertx / io.vertx.kotlin.core.shareddata / io.vertx.core.shareddata.AsyncMap / replaceAwait

replaceAwait

suspend fun <K, V> AsyncMap<K, V>.replaceAwait(k: K, v: V): V?

Replace the entry only if it is currently mapped to some value

Parameters

k - the key

v - the new value

resultHandler - the result handler will be passed the previous value