https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

robstoll

02/16/2021, 7:30 PM
sad to see, that
synchronized
will go away from common (
Synchronization on any object is not supported on every platform and will be removed from the common standard library soon.
). Is there another locking mechanism available?
b

bsimmons

02/16/2021, 7:38 PM
I've had to use Mutex before on a few occasions.
r

robstoll

02/16/2021, 7:39 PM
hm... is there no alternative in the stdlib?
b

bsimmons

02/16/2021, 8:18 PM
I'm not entirely sure.
a

araqnid

02/16/2021, 11:43 PM
There’s a locks package in the atomicfu library which provides multiplatform synchronized and ReentrantLock, as far as I can tell
2 Views