vertx / io.vertx.kotlin.core.shareddata / io.vertx.core.shareddata.SharedData / getLockWithTimeoutAwait
getLockWithTimeoutAwait
suspend fun SharedData.getLockWithTimeoutAwait(name: String, timeout: Long): Lock
Like io.vertx.core.shareddata.SharedData but specifying a timeout. If the lock is not obtained within the timeout
a failure will be sent to the handler.
Parameters
name
- the name of the lock
timeout
- the timeout in ms
resultHandler
- the handler