Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardC#the async/await state machineSingle-choice MCQ

Given the synchronous-completion fast path, what does the generated MoveNext do when `awaiter.IsCompleted` returns true at the first await point?

int IAsyncStateMachine.MoveNext() { // ... awaiter = task.GetAwaiter(); if (!awaiter.IsCompleted) { /* suspend */ } // else fall through to GetResult }