Mohamed Ibrahim
02/19/2020, 2:07 PMcontinuation
object which is passed around with suspend functions?diesieben07
02/19/2020, 2:09 PMsuspend
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.