Thread Sleep Without Freezing The Ui

[Solved] Thread Sleep Without Freezing The Ui | Swift - Code Explorer | yomemimo.com
Question : Thread.Sleep() without freezing the UI

Answered by : frantic-flamingo-8hxyj2gd0n0f

private void someMethod() TO private async void someMethod() await Task.Delay(milliseconds);
This makes it an asynchronous method and will run asynchronously from your UI thread.
Note that this is only supported in the Microsoft .NET framework 4.5 and higher.

Source : https://stackoverflow.com/questions/24136390/thread-sleep-without-freezing-the-ui | Last Update : Thu, 20 Jan 22

Answers related to thread sleep without freezing the ui

Code Explorer Popular Question For Swift