<@U181YPG59> There is no ready-to-use class for ac...
# coroutines
e
@gregschlom There is no ready-to-use class for actors in
kotlinx.coroutines
, but you can create your own one in just a few lines. You are doing it the right way. There are many ways to do it. You can also extract
for (msg in channel)
loop, so that your logic is in a separate function that you'll overwrite in each subclass.