Quantcast
Viewing all articles
Browse latest Browse all 76418

I need to wait in a PCL. How can I do it?

The user pressed a button. I want to:

DoSomething();
Wait(5 seconds)
DoSomethingElse();

  • Task.Delay is not working for me because I'm not in an async function.
  • There doesn't seem to be any Thread.Sleep....

What should I do?

Thanks!
Mike


Viewing all articles
Browse latest Browse all 76418

Trending Articles