Thread.Sleep equivalent in UWP App

This content was proof-read by Grammarly. You can Try Grammary for FREE

If you are looking for an equivanet for Thread.Sleep method in UWP apps , you can use the Task.Delay method instead.

The reason for this is that Task.Delay works like a pause method for the asynchronous call.

await Task.Delay(TimeSpan.FromSeconds(10));
%d bloggers like this: