Join Slack
Communities
Powered by
There are no dedicated runtime types planned for s...
# coroutines
e
elizarov
12/29/2016, 2:11 PM
There are no dedicated runtime types planned for suspending functions, though. Suspending functions are represented internally and for the purposes of reflection via CPS convention. So, a suspending function of arity
n
at runtime is a regular function of arity
n+1
. The details of CPS conventions are explained here:
https://github.com/Kotlin/kotlin-coroutines/blob/master/kotlin-coroutines-informal.md#continuation-passing-style
Open in Slack
Previous
Next