In Metro, may I know how do you wait for a thread to complete. In conventional desktop app, to wait for the thread to complete, I will use
thread.Join()
However, how about in Metro?
// public void getSignalProcessingRunnable(IAsyncAction source) {}
IAsyncAction ThreadPoolWorkItem = Windows.System.Threading.ThreadPool.RunAsync(getSignalProcessingRunnable);
// How to wait for thread to complete?
Using await won’t work.
If
awaitis not working, you can also try using Task.WaitAny Method from MSDNYou can also refer to this link: How to Start/Stop/Wait for a Thread
Also have a look on this good reference No Threads for you ! (in metro style apps)