Wait some seconds without blocking UI execution code example
Example: Wait some seconds without blocking UI execution
async Task PutTaskDelay()
{
await Task.Delay(5000);
}
private async void btnTaskDelay_Click(object sender, EventArgs e)
{
await PutTaskDelay();
MessageBox.Show("I am back");
}