ConsoleGameEngine
1.2.1
jvm
ConsoleGameEngine
/
top.kmar.game.utils
/
updateWith
update
With
inline
fun
AtomicInteger
.
updateWith
(
updater
:
(
Int
)
->
Int
)
在当前值的基础上或一个数值,并复制给 Atomic。
该函数是线程安全的。