org.mapdb / Atomic / Boolean / getAndSet

getAndSet

fun getAndSet(newValue: Boolean): Boolean

Atomically sets to the given value and returns the previous value.

Parameters

newValue - the new value

Return
the previous value