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

putIfAbsentAwait

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

Suspending version of method io.vertx.core.shareddata.AsyncMap.putIfAbsent

Parameters

k - the key

v - the value

Return

V?

NOTE: This function has been automatically generated from io.vertx.core.shareddata.AsyncMap using Vert.x codegen.

suspend fun <K, V> AsyncMap<K, V>.putIfAbsentAwait(k: K, v: V, ttl: Long): V?

Suspending version of method io.vertx.core.shareddata.AsyncMap.putIfAbsent

Parameters

k - the key

v - the value

ttl - The time to live (in ms) for the entry

Return

V?

NOTE: This function has been automatically generated from io.vertx.core.shareddata.AsyncMap using Vert.x codegen.