littlelightcz
05/19/2019, 6:57 PMval foo = AtomicInteger(0)
foo++
Current increment operator would allow me to work only with var foo, but this is obviously not what I want. In my use case I want to launch N coroutines and show a progress bar with how many of them have already finished (tracked in the foo AtomicInteger)Matej Drobnič
05/19/2019, 7:44 PMadd(Integer) work?Matej Drobnič
05/19/2019, 7:44 PM++ is basically shorthand for += 1littlelightcz
05/20/2019, 6:10 AMfoo += 1littlelightcz
05/20/2019, 6:12 AMelizarov
05/20/2019, 8:30 AMlittlelightcz
05/20/2019, 9:25 AMlittlelightcz
05/20/2019, 3:22 PMelizarov
05/20/2019, 4:39 PMa += b that works both for mutable classes via a.plusAssign(b) and for immutable classes via a = a.plus(b). If something in that direction is done for ++, then it has to have similar design or it is a no-go.littlelightcz
05/25/2019, 10:38 AM