I need Thread-exclusive access to a Map in common ...
# multiplatform
d
I need Thread-exclusive access to a Map in common code - synchronized is deprecated in K/MP and I'd rather not refactor this code to single coroutine + channel 'actor' style if it can be avoided...does anyone know a neat way to do mutual thread exclusion in K/MP? I'm writing for Android and iOS .
a
hi. check https://github.com/touchlab/Stately, maybe this help you
1