Dico
09/19/2018, 2:42 AMcoroutineContext
is a top level property that can be accessed from suspend functions.
I suspect that it does this under the hood:
get() = suspendCoroutineUninterceptedOrReturn { cont -> cont.context }
gildor
09/19/2018, 3:22 AMDico
09/19/2018, 5:07 AMsuspend val
is not supported, the error is suppressed and it's implemented intrinsically, yes. I'm just pointing out that that's another way to get the context. Something interesting to think about imo.
In reality, it can just access Continuation
in the code directly, I think.