dave08
11/11/2018, 2:02 PMConcurrentHashMap
with coroutines that suspends the current Coroutine instead of blocking the thread? Sometimes retrieval of missing values can take time...gildor
11/11/2018, 2:33 PMdave08
11/11/2018, 2:36 PMlittlelightcz
11/11/2018, 6:47 PMwithContext(IO) {...}
, then I think you will get the behaviour you're describing. With that you could write an extension suspending function for Map
in general (or ConcurrentHashMap
specifically), which could do the get operation in this fashion automatically.littlelightcz
11/11/2018, 6:51 PMdave08
11/11/2018, 8:47 PMgildor
11/12/2018, 12:54 AMgildor
11/12/2018, 12:55 AMgildor
11/12/2018, 12:55 AMtateisu
11/12/2018, 2:20 AMdave08
11/12/2018, 2:43 AMtateisu
11/12/2018, 3:05 AMdave08
11/12/2018, 7:31 AMDico
11/12/2018, 11:50 AMDico
11/12/2018, 11:50 AM