Kotlin Playground is HTML component which creates Kotlin-aware editors capable of running
code from HTML block elements.
Here I explain how to embed runnable Kotlin code block in your Hugo-powered blog.
In this post I will show how to build simple data-enriching pipeline using Kotlin coroutines. I will use Channels and Actors abstractions provided by kotlinx-coroutines.
In Actors model “actors” are the universal primitives of concurrent computation. In response to a message that it receives, an actor can: make local decisions, create more actors, send more messages, and determine how to respond to the next message received. Actors may modify their own private state, but can only affect each other through messages (avoiding the need for any locks).