Skip to content

Commit

Permalink
Fix VSTHRD200 violation.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Feb 8, 2024
1 parent 218ee36 commit 148b2c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/samples/control/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
static async ValueTask Run(string message, Action action)
static async ValueTask RunAsync(string message, Action action)
{
var tcs = new TaskCompletionSource();

Expand Down Expand Up @@ -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.");

0 comments on commit 148b2c2

Please sign in to comment.