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++; } }