update

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