I'm playing with #Kotlin coroutines, channels and flow to reproduce actor-like behaviour.
Yes, I know of the obsolete `CoroutineScope.actor`. Just playing!
Yes, I know of the obsolete `CoroutineScope.actor`. Just playing!
Comments
Each message emitted to the actor is passed to the actor's function. Below example just forwards messages to a Channel for further inspection.