ddimitrov
08/28/2022, 11:26 AMlaunch
-ed coroutines on the IO dispatcher, using blocking receive()
and send()
with timeout, one draining an outbound channel, the other directly updating a map with statistics (guarded by synchronized
section).
Is this the idiomatic way? Am I supposed to use one of the Flow
implementations? Can I somehow plug my I/O into Ktor's selector?