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

pardom

03/08/2019, 4:29 PM
stackless
🚫 1
e

elizarov

03/09/2019, 9:49 AM
That is not true for a usual definition of stackless/stackfull coroutine.
p

pardom

03/09/2019, 2:29 PM
Could you elaborate or clarify?
e

elizarov

03/09/2019, 2:31 PM
A usual definition of stackless is that “a coroutine can be suspended only in inside one function” and stackful is that “a coroutine can be suspended at arbitrarily deep call”. For Kotlin coroutines the later is true. If you use a different definition of stackless/stackfull, your answer will be different. It does not really matter, though, because stackless coroutines easily emulate stackfull.
p

pardom

03/09/2019, 2:34 PM
So depending on whether you define stackful/stateful by implemention/features the answer could be different and this is why you called it a false dichotomy in your talk?
e

elizarov

03/09/2019, 2:34 PM
Yes
p

pardom

03/09/2019, 2:34 PM
Got it, thanks!
6 Views