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

# getLockWithTimeout

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

Like `#getLock(String, Handler)` 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