suspend fun <K, V> AsyncMap<K, V>.putIfAbsentAwait(: K, : V): V?
Put the entry only if there is no entry with the key already present. If key already present then the existing value will be returned to the handler, otherwise null.
completionHandler
- the handler
suspend fun <K, V> AsyncMap<K, V>.putIfAbsentAwait(: K, : V, : Long): V?
Link io.vertx.core.shareddata.AsyncMap but specifying a time to live for the entry. Entry will expire and get evicted after the ttl.