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

# putAwait

`suspend fun <K, V> AsyncMap<K, V>.putAwait(k: K, v: V): Unit`

Put a value in the map, asynchronously.

### Parameters

`k` - the key

`v` - the value

`completionHandler` -

- this will be called some time later to signify the value has been put

`suspend fun <K, V> AsyncMap<K, V>.putAwait(k: K, v: V, ttl: Long): Unit`

Like io.vertx.core.shareddata.AsyncMap but specifying a time to live for the entry. Entry will expire and get evicted after the ttl.

### Parameters

`k` - the key

`v` - the value

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

`completionHandler` - the handler