is it possible to solve exactly this issue with co...
# coroutines
d
is it possible to solve exactly this issue with coroutines in elegant way? https://stackoverflow.com/questions/12450402/java-synchronizing-based-on-a-parameter-named-mutex-lock
a
You can try storing `Mutex`es (which is a non-blocking version of locks) in a map as well. But maybe make sure you use an appropriate
ConcurrentHashMap
to store them and get them via thread-safe
computeIfAbsent
to create new mutexes.