atomicInteger

fun atomicInteger(initValue: Int = 0): ReadWriteProperty<Any?, Int>

Creates a thread-safe Int property delegate backed by AtomicInt.

Return

a ReadWriteProperty delegate

Parameters

initValue

the initial value (default 0)