Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Implementing_State_Machines_in_Kotlin.pdf
Search
prassee
April 08, 2020
Programming
0
30
Implementing_State_Machines_in_Kotlin.pdf
prassee
April 08, 2020
Tweet
Share
More Decks by prassee
See All by prassee
State_of_LSP_in_Kotlin.pdf
prassee
0
26
FINAGLE - AN INTRO TO RPC & ASYNC PROGRAMMING IN JVM
prassee
1
94
Other Decks in Programming
See All in Programming
上手に付き合うコンポーネントテスト
quramy
2
570
開発を加速する共有Swift Package実践
elmetal
PRO
0
430
【TID2024】模擬講義:プログラマと一緒にゲームをデザインしてみよう!
akatsukigames_tech
0
690
Prolog入門
qnighy
4
1k
XStateでReactに秩序を与えたい
gizm000
0
740
ECMAScript、Web標準の型はどう管理されているか / How ECMAScript and Web standards types are maintained
petamoriken
3
400
Architecture Decision Record (ADR)
nearme_tech
PRO
1
700
『ドメイン駆動設計をはじめよう』中核の業務領域
masuda220
PRO
5
1k
unique パッケージから学ぶ interning と weak reference @ Asakusa.go#3
karamaru
2
820
Desafios e Lições Aprendidas na Migração de Monólitos para Microsserviços em Java
jessilyneh
2
150
Go1.23で入った errorsパッケージの小さなアプデ
kuro_kurorrr
2
400
なぜアジャイルがうまくいかないのか?
yum3
1
110
Featured
See All Featured
Fireside Chat
paigeccino
31
2.9k
The Illustrated Children's Guide to Kubernetes
chrisshort
47
48k
Fontdeck: Realign not Redesign
paulrobertlloyd
80
5.1k
The World Runs on Bad Software
bkeepers
PRO
64
11k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
BBQ
matthewcrist
83
9.2k
Large-scale JavaScript Application Architecture
addyosmani
508
110k
Robots, Beer and Maslow
schacon
PRO
157
8.2k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
29
2.6k
Debugging Ruby Performance
tmm1
72
12k
Art, The Web, and Tiny UX
lynnandtonic
294
20k
Faster Mobile Websites
deanohume
304
30k
Transcript
Implementing State Machines in Kotlin Presented by Prasanna Kumar
About me - Data Engineer @ Kognitiv - Blog @
https://blog.prassee.me/ - Github - https://github.com/prassee/ - Started Kotlin recently !!!! Lets begin !!!!
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
Introduction to State Machine
Modelling a state machine - “Tumbling Window” https://mapr.com/ebooks/intro-to-apache-flink/chapter-4-handling-time.html
Modelling a state machine - “Tumbling Window” (contd)
Coroutine Concurrency in Kotlin - Coroutines https://proandroiddev.com/kotlin-coroutines-channels-csp-android-db441400965f
suspend fun main() = coroutineScope { for (i in 0
until 10) { launch { delay(1000L - i * 10) print("❤$i ") } } } Concurrency in Kotlin - Coroutines
Coroutine Concurrency in Kotlin - Channels https://proandroiddev.com/kotlin-coroutines-channels-csp-android-db441400965f
Show Time !!! https://github.com/prassee/sm-with-k otlin
?
Thank You !!!