vertx / io.vertx.reactivex.core.shareddata / Counter / getAndAdd

getAndAdd

open fun getAndAdd(value: Long, resultHandler: Handler<AsyncResult<Long>>): Unit

Add the value to the counter atomically and return the value before the add

Parameters

value - the value to add

resultHandler - handler which will be passed the value