From 495d63792d364974dc59a2ee78562063fa3e1c14 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Tue, 9 Jan 2018 16:19:13 -0600 Subject: [PATCH] Swap Task.Delay for Thread.Sleep in ChangeToken sample (#5137) --- .../primitives/change-tokens/sample/Utilities/Utilities.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/fundamentals/primitives/change-tokens/sample/Utilities/Utilities.cs b/aspnetcore/fundamentals/primitives/change-tokens/sample/Utilities/Utilities.cs index 5654739d58..2275e591ae 100644 --- a/aspnetcore/fundamentals/primitives/change-tokens/sample/Utilities/Utilities.cs +++ b/aspnetcore/fundamentals/primitives/change-tokens/sample/Utilities/Utilities.cs @@ -77,7 +77,7 @@ namespace ChangeTokenSample.Utilities } else { - Thread.Sleep(TimeSpan.FromSeconds(Math.Pow(2, runCount))); + await Task.Delay(TimeSpan.FromSeconds(Math.Pow(2, runCount))); runCount++; } }