vertx / io.vertx.rxjava.core.shareddata / SharedData / getLock

getLock

open fun getLock(name: String, resultHandler: Handler<AsyncResult<Lock>>): Unit

Get an asynchronous lock with the specified name. The lock will be passed to the handler when it is available.

Parameters

name - the name of the lock

resultHandler - the handler