update

inline fun <ERROR CLASS>.update(function: (Long) -> Long)

Updates variable atomically using the specified function of its value.