Thread.Sleep in WinRT
Color me surprised when I noticed that WinRT is missing the Thread.Sleep-function. Fortunately MSDN forums provided the following code snippet which quite nicely provides the same functionality:
1 2 3 4 | static void Sleep( int ms) { new System.Threading.ManualResetEvent( false ).WaitOne(ms); } |