Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/csharp/programming-guide/concepts/async/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For a parallel algorithm, you'd need multiple cooks (or threads). One would make

Now, consider those same instructions written as C# statements:

:::code language="csharp" source="snippets/index/AsyncBreakfast-starter/Program.cs" highlight="8-34":::
:::code language="csharp" source="snippets/index/AsyncBreakfast-starter/Program.cs" highlight="15-34":::

:::image type="content" source="media/synchronous-breakfast.png" alt-text="synchronous breakfast":::

Expand Down Expand Up @@ -247,7 +247,7 @@ while (breakfastTasks.Count > 0)

After all those changes, the final version of the code looks like this:
<a id="final-version"></a>
:::code language="csharp" source="snippets/index/AsyncBreakfast-final/Program.cs" highlight="9-40":::
:::code language="csharp" source="snippets/index/AsyncBreakfast-final/Program.cs" highlight="16-47":::

:::image type="content" source="media/whenany-async-breakfast.png" alt-text="when any async breakfast":::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ namespace AsyncBreakfast
{
class Program
{
// <SnippetMain>
// These classes are intentionally empty for the purpose of this example. They are simply marker classes for the purpose of demonstration, contain no properties, and serve no other purpose.
internal class Bacon { }
internal class Coffee { }
internal class Egg { }
internal class Juice { }
internal class Toast { }

// <SnippetMain>
static async Task Main(string[] args)
{
Coffee cup = PourCoffee();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ namespace AsyncBreakfast
{
class Program
{
// <SnippetMain>
// These classes are intentionally empty for the purpose of this example. They are simply marker classes for the purpose of demonstration, contain no properties, and serve no other purpose.
internal class Bacon { }
internal class Coffee { }
internal class Egg { }
internal class Juice { }
internal class Toast { }

// <SnippetMain>
static async Task Main(string[] args)
{
Coffee cup = PourCoffee();
Expand Down