https://kotlinlang.org logo
Title
r

rakshakhegde

03/04/2017, 4:43 AM
Is there a good document that explains how coroutines in Kotlin work? It's fascinating how it's suspending without threads 😯
v

voddan

03/04/2017, 5:02 AM
g

groostav

03/04/2017, 5:05 AM
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

voddan

03/04/2017, 5:06 AM
The video by the link is good, but its syntax is outdated
g

groostav

03/04/2017, 5:07 AM
yeah and Andrey is being attacked by an oracle branded air conditioner 😛