increment

fun STM.increment(): Long(source)

Increments the counter by 1 and returns the new value within an STM transaction.