Is there a way to make an asynchronous call to a custom method in WP7 - WP8?
In a Windows Forms app i would simply do this:
private void btnStart_Click(object sender, EventArgs e)
{
MyMethod();
}
private async void MyMethod()
{
await System.Threading.Tasks.Task.Run(() => Thread.Sleep(5000));
}
However, it seems like the System.Threading.Tasks namespace is not supported in WP apps.
Then what should i do if i wished to act similarly in my WP7 - WP8 app?