Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

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

$
0
0

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 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>