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

# replaceIfPresentAwait

`suspend fun <K, V> AsyncMap<K, V>.replaceIfPresentAwait(k: K, oldValue: V, newValue: V): Boolean`

Replace the entry only if it is currently mapped to a specific value

### Parameters

`k` - the key

`oldValue` - the existing value

`newValue` - the new value

`resultHandler` - the result handler