How can I run both of these methods ‘at the same time’ in .NET 4.5?
Here is what you may want to do: public async Task<PewPew> SomeMethod(Foo foo) { // get the stuff on another thread var cTask = Task.Run(() => GetAllTheCats(foo)); var fTask = Task.Run(() => GetAllTheFood(foo)); var cats = await cTask; var food = await fTask; return new PewPew { Cats = cats, Food = food }; } … Read more