org.mapdb / Atomic / Integer / getAndAdd

getAndAdd

fun getAndAdd(delta: Int): Int

Atomically adds the given value to the current value.

Parameters

delta - the value to add

Return
the previous value