From 148b2c2fda65a1acea6167a567e3db837b31f836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 8 Feb 2024 15:43:00 +0100 Subject: [PATCH] Fix VSTHRD200 violation. --- src/samples/control/Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/samples/control/Program.cs b/src/samples/control/Program.cs index d967659..baaa87c 100644 --- a/src/samples/control/Program.cs +++ b/src/samples/control/Program.cs @@ -1,4 +1,4 @@ -static async ValueTask Run(string message, Action action) +static async ValueTask RunAsync(string message, Action action) { var tcs = new TaskCompletionSource(); @@ -36,9 +36,9 @@ static async ValueTask Run(string message, Action action) { await OutLineAsync("Trying to output text in control context..."); - await Run("output text", () => OutLine("This should throw.")); - await Run("read a line", () => ReadLine()); - await Run("switch to raw mode", EnableRawMode); + await RunAsync("output text", () => OutLine("This should throw.")); + await RunAsync("read a line", () => ReadLine()); + await RunAsync("switch to raw mode", EnableRawMode); } await OutLineAsync("Done.");