async thread.sleep c# code example
Example 1: c# async sleep
// Async
await Task.Delay(1000); //when you want a logical delay without blocking the current thread
// Not Async
Thread.Sleep(1000) //when you want to block the current thread.
Example 2: c# thread sleep
Thread.Sleep(2000); //in ms