An await, made visible

The work pauses. Its obligations remain.

Follow the actual laboratory chain from a closed gate to the result 1019. Each step connects the source with the work still to be done.

UNFINISHED WORK

An await and its pending additionsA closed gate holds the leaf method. After release, the leaf returns 1017, the middle adds one, and the outer chain adds one to return 1019. SuspendedChainawait middle, then + 1… SuspendedMiddleawait leaf, then + 1… SuspendedLeafawait gate, then + 1000… Gate closed

Runner/Program.csC# / laboratory source

GATEIncomplete
OUTER TASKNot called

01 / 05

Conceptual execution steps, not measured timing or a debugger recording. The default gate can run continuations inline inside SetResult. The token here is CancellationToken.None.

Source: REL01/lab/Workloads.cs and Runner/Program.cs. Same behavior in both compared libraries.