sad to see, that `synchronized` will go away from ...
# multiplatform
r
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
I've had to use Mutex before on a few occasions.
r
hm... is there no alternative in the stdlib?
b
I'm not entirely sure.
a
There’s a locks package in the atomicfu library which provides multiplatform synchronized and ReentrantLock, as far as I can tell