Use Task.Delay() instead of Thread.Sleep() to wait in a Task