atomicInteger

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

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

Return

a ReadWriteProperty delegate

Parameters

initValue

the initial value (default -1)