Could anyone explain simply what the responsiblity...
# coroutines
m
Could anyone explain simply what the responsiblity of the
continuation
object which is passed around with suspend functions?
d
suspend
functions are compiled to a normal function which takes a callback.
Continuation
is that callback. Effectively under the hood a
suspend
function is called, does some asynchronous work and then invokes the provided callback (aka
Continuation
) when its done.