add

fun STM.add(amount: Long): Long(source)

Adds amount to the counter and returns the new value within an STM transaction.