Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardKotlinsuspend compiled to state machineSingle-choice MCQ

When a suspend function resumes after suspending inside a callee, the FIRST thing the generated state-machine method does upon re-entry is inspect the incoming result. What must it do before using that result, and which value would indicate the callee completed exceptionally?

// conceptual: top of invokeSuspend after the label switch jumps here // $result holds what came back from the suspended callee