Swap Task.Delay for Thread.Sleep in ChangeToken sample (#5137)
parent
2f1168e6e5
commit
495d63792d
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue