Swap Task.Delay for Thread.Sleep in ChangeToken sample (#5137)

pull/5095/merge
Luke Latham 2018-01-09 16:19:13 -06:00 committed by Rick Anderson
parent 2f1168e6e5
commit 495d63792d
1 changed files with 1 additions and 1 deletions

View File

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