Hi is there any pattern that can be used for actor...
# coroutines
d
Hi is there any pattern that can be used for actor like behavior today given the fact the
actor
builder is obsolete?
z
There’s no API for it, but you could still use the pattern
d
I'm fine with the pattern, would just need some pointers or perhaps an example
z
This was my intro to the theory, but there’s lots of books about actor-based programming. My first exposure to the concept was Scala’s Akka, but iirc they had pretty good docs on the concepts too.
d
Oh you meant the general actor pattern... I'm familiar with that, just not with how to do it with Kotlin coroutines, though I can make some guesses based on what I know. I was hoping for some guidance using an example someone else has done
j
It's basically just a channel and a coroutine that's looping on receiving events from that channel
☝🏻 1
d
Thanks... this reminds me very much of a similar thing I did for Scala
👍 1
And this is the approach I thought to take