Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Implementing_State_Machines_in_Kotlin.pdf

 Implementing_State_Machines_in_Kotlin.pdf

prassee

April 08, 2020
Tweet

More Decks by prassee

Other Decks in Programming

Transcript

  1. About me - Data Engineer @ Kognitiv - Blog @

    https://blog.prassee.me/ - Github - https://github.com/prassee/ - Started Kotlin recently !!!! Lets begin !!!!
  2. Agenda - Introduction to State Machine - Modelling a state

    machine for “Tumbling Window” - Concurrency in Kotlin - quick tour - Coroutines - Channels - Implementation - code walk through - Q&A
  3. suspend fun main() = coroutineScope { for (i in 0

    until 10) { launch { delay(1000L - i * 10) print("❤$i ") } } } Concurrency in Kotlin - Coroutines
  4. ?