vertx / io.vertx.reactivex.core.shareddata / SharedData / getLockWithTimeout

# getLockWithTimeout

`open fun getLockWithTimeout(name: String, timeout: Long, resultHandler: Handler<AsyncResult<Lock>>): Unit`

Like `io.vertx.reactivex.core.shareddata.SharedData#getLock` 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