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

In the generated state machine, how does the very first invocation of a suspend function distinguish 'fresh start' from 'resumed', and where does the result of the awaited call arrive on resume?

// generated invokeSuspend(result: Object): Object { ... switch(label) ... }