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
27
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
24
FINAGLE - AN INTRO TO RPC & ASYNC PROGRAMMING IN JVM
prassee
1
89
Other Decks in Programming
See All in Programming
"config" ってなんだ? / What is "config"?
okashoi
0
220
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
25
7.8k
HUIT新歓2024「競技プログラミング、やってみませんか?」
slephy2784
1
250
Blue/Greenデプロイの導入による 運用フローの改善
kudoas
1
350
Ruby Pattern Matching
bkuhlmann
0
920
データアナリストが行うDatabricksを活用したETLの自動化事例
shinoa
0
250
Front-end application development, Symfony-style(s)
dunglas
2
1.9k
ONE WEDGE_company_guide
1wedge_one
0
380
try! Swift Tokyo 2024のLT枠に採択されたプロポーザルを出すときに考えていたこと
ski
0
340
pixivアプリでマルチモジュールを実現するまで
gatosyocora
1
130
甘い香りに誘われてVanilla Extractを1年間運用してみた
miyahkun
1
110
今の SmartHR にエンジニアで入社するとどうなるの?
daisukeshinoku
5
4.6k
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
42
6.7k
Clear Off the Table
cherdarchuk
83
310k
Six Lessons from altMBA
skipperchong
20
3k
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
What's new in Ruby 2.0
geeforr
337
31k
For a Future-Friendly Web
brad_frost
171
8.9k
The Cult of Friendly URLs
andyhume
74
5.7k
Fantastic passwords and where to find them - at NoRuKo
philnash
36
2.5k
Embracing the Ebb and Flow
colly
79
4.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
15
2.6k
A better future with KSS
kneath
231
16k
Side Projects
sachag
451
41k
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 !!!