4ntoine
07/04/2019, 7:39 AMlock
or synchronized
in Kotlin? https://stackoverflow.com/questions/56882860/is-there-multiplatform-lock-on-kotlin4ntoine
07/04/2019, 7:46 AMelizarov
07/04/2019, 7:47 AMkotlinx.atomicfu
library. Btw, what kind of “disk footprint” are you measuring?4ntoine
07/04/2019, 7:49 AMelizarov
07/04/2019, 7:49 AM4ntoine
07/04/2019, 7:53 AMsynchronized
will be removed from common lib? Are we safe to use it for some time at least?elizarov
07/04/2019, 7:58 AMsynchronized
. It is a part of a stable Kotlin API and there is no plan to remove it.4ntoine
07/04/2019, 8:01 AMsynchronized
, but looking for long-time (or just “proper”) solutionelizarov
07/04/2019, 8:08 AMMutex
only works if you are using coroutines — it is a lock that suspends a coroutine, not blocks a thread.gildor
07/04/2019, 8:39 AM4ntoine
07/04/2019, 12:02 PMelizarov
07/04/2019, 12:03 PM4ntoine
07/04/2019, 12:03 PMelizarov
07/04/2019, 12:04 PMlouiscad
07/04/2019, 12:07 PMkotlinx.coroutines.channels.Channel
can become 5 times smaller in terms of characters count: a.a.a.a
, and so does all the bytecode.basher
07/04/2019, 12:36 PM4ntoine
07/04/2019, 12:52 PMelizarov
07/04/2019, 12:56 PMbasher
07/04/2019, 2:22 PMkpgalligan
07/04/2019, 2:25 PMArkadii Ivanov
07/06/2019, 2:04 PMarena
, attr
and mutex
fields should be private as they are implementation details 😀kpgalligan
07/06/2019, 2:07 PMclose
, so adding that to Lock
means I can no longer use typealiasclose
to Lock
, then yes, the rest would be internal (or hide them a different way)Arkadii Ivanov
07/06/2019, 4:19 PM