Dico
06/06/2019, 4:24 PMAtomicInt from kotlinx:atomicfu doesn't declare these:
operator fun plusAssign (+=)
operator fun minusAssign (-=)
operator fun inc (++)
operator fun dec (--)
In Java, these couldn't be atomic, but since you can implement them yourself, they would be.
For inc and dec I guess it might be because they would have to return AtomicInt, instead of Int.
Asking here because I didn't see an atomicfu channel.Dico
06/06/2019, 4:29 PMDico
06/06/2019, 4:30 PMDico
06/06/2019, 4:31 PM