natario1
11/22/2022, 11:07 AMcurrentCoroutineContext()
? I imagine it doesn’t suspend despite being suspend
and should return immediately, just fetching some compiler generated field, no extra allocations. Is this right?Sam
11/22/2022, 11:31 AMContinuation.context
on the current continuation. The suspend
modifier just makes sure that there is a current continuation. Nothing actually ends up suspending.natario1
11/22/2022, 2:33 PM