So I just picked up the Async CTP framework for .NET/CF, and I'm amazed at how easy it has made Asynchronous development.
I EASILY fixed a slow load time by moving every data load/sort to an asynchronous thread.
If you haven't, you should check it out!
Easy as that. So cool.
I EASILY fixed a slow load time by moving every data load/sort to an asynchronous thread.
If you haven't, you should check it out!
Code:
private async void GonnaDoThis()
{
Boolean isItDoneYet = await ThisIsMyBackgroundThread();
}
private Task<Boolean> ThisIsMyBackgroundThread()
{
return TaskEx.Run(() => {
Console.WriteLine("This was run in the background");
return true;
});
}
Easy as that. So cool.