update

inline fun <V> Atomic<V>.update(function: (V) -> V)(source)
inline fun AtomicBoolean.update(function: (Boolean) -> Boolean)(source)
inline fun AtomicInt.update(function: (Int) -> Int)(source)
inline fun AtomicLong.update(function: (Long) -> Long)(source)