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

rxGetLockWithTimeout

open fun rxGetLockWithTimeout(name: String, timeout: Long): Single<Lock>

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

Return