updateWith

inline fun AtomicInteger.updateWith(updater: (Int) -> Int)

在当前值的基础上或一个数值,并复制给 Atomic。

该函数是线程安全的。