https://kotlinlang.org logo
#coroutines
Title
# coroutines
o

Olekss

10/31/2017, 8:44 AM
Hey. Question. Because coroutines at the end of the day call "continuation.setValue()" how it is organised on the stack. Wouldn't it end on stackOverflowException ? If I would implement CPS using kotlin I would end up with full stack? Can I do CPS in kotlin, or I need to play carefully with tale call optimization?
e

elizarov

10/31/2017, 9:07 AM
o

Olekss

10/31/2017, 9:38 AM
"The actual implementation of the suspending function is not allowed to invoke the continuation in its stack frame directly because that may lead to stack overflow on long-running coroutines" So Do I undersatnd correctly that this is taken care by compiler under the hood to avoid stack overflows?
e

elizarov

10/31/2017, 2:03 PM
Yes
o

Olekss

11/07/2017, 12:35 PM
quick personal question. How do you manage to be everywhere? Slack, Forum, Work, Conferences, KATEGORY lib etc? 🙂 Do you sleep? Or you use coroutines for your own existence?
e

elizarov

11/07/2017, 12:49 PM
That is an illusion
3 Views