https://kotlinlang.org logo
Title
k

Karlo Lozovina

09/13/2021, 7:23 PM
can Kotlin actors be orchestrated in some kind of a hierarchy, possibly with restarts, stopping all descendent actors when a parent stops, etc..?
z

Zach Klippenstein (he/him) [MOD]

09/13/2021, 8:31 PM
Kotlin doesn’t really (yet) have a full-fledged actors library, afaik. It has the
actor
function which is just shorthand for creating a channel and a coroutine to read from it – it doesn’t have all the features of most actor-based programming frameworks. That said, you can do anything with it that you could otherwise do with coroutine job hierarchies and other coroutine tools.