https://kotlinlang.org logo
#ktor
Title
# ktor
d

ddimitrov

08/31/2022, 2:22 PM
Apologies about the repost, but I sent this message on a weekend and it got zero replies and was quickly buried under Monday chatter. I'm trying one more time. Looking for advice please :-)
a

Andreas Scheja

08/31/2022, 5:39 PM
I guess you could take a look at
MutableStateFlow
. It would keep the Map you mentioned, updates could be done via the
update()
extension method. That way you don't need the (potentially) blocking
synchronized
and as such also no IO dispatcher I think?
👍 1
6 Views