Is there a good document that explains how corouti...
# coroutines
r
Is there a good document that explains how coroutines in Kotlin work? It's fascinating how it's suspending without threads 😯
v
g
yeah I mean, to be blunt it typically requires job queues. The 25 word explanation that I give programmers who haven't seen coroutines before is that basically
kotlinc
will chop some methods up into smaller methods and wrap a call to each of those small methods in a job for a job queue.
also worth mentioning, with kotlin's implementation of couroutines there isn't actually anything stopping you from using multiple threads to implement it, though I'm not sure why that would be desirable.
v
The video by the link is good, but its syntax is outdated
g
yeah and Andrey is being attacked by an oracle branded air conditioner 😛