Had a friend ask this: > how do kotlin coroutin...
# coroutines
s
Had a friend ask this:
how do kotlin coroutines work? i.e. is it just a state machine on top of Java's threadpool?
I don't really know anything about the internals. I thought maybe someone in here would have some insight
d
The core idea is that yes, it's a state machine. This talk by Andrey Breslav is a bit older, but it goes into a lot of detail on how it works under the covers:

https://www.youtube.com/watch?v=4W3ruTWUhpw

👍 1
v

https://www.youtube.com/watch?v=3xalVUY69Ok

there is a newer version. One from Andrey is a bit outdated
k
Anyone know what the guy in the first video at 1:33 is shouting?
s
Thanks! 🙂
d
@karelpeeters I think first one is "It blocks" and the 2nd one is "It's a style difference".
k
Ah yes, that's it. What does he mean by that though 🤔
d
Well, he asks if there is something wrong with it, so I think it's a joke about the code style. Not quite sure either though.