Storozh Kateryna
12/22/2021, 1:03 PMmkrussel
12/22/2021, 1:31 PMloadData
is now blocking instead of suspending.Joakim Forslund
12/22/2021, 1:34 PMStorozh Kateryna
12/22/2021, 1:43 PMmkrussel
12/22/2021, 2:14 PMrunBlocking
, that would defeat the point of using Mutex
instead of Synchronized
.
The mutex will suspend until it has access.
If this is on a JVM another option would be to use a ConcurrentHashMap
to avoid needed to synchronize.Storozh Kateryna
12/22/2021, 2:29 PMJoakim Forslund
12/22/2021, 3:43 PMStorozh Kateryna
12/22/2021, 4:35 PMJoakim Forslund
12/22/2021, 4:47 PMStorozh Kateryna
12/22/2021, 4:56 PM