Run Tasks in Parallel

70

Run Tasks in Parallel -

IList<Cat> cats;
IList<Food> food;

Parallel.Invoke
(
    () => cats = GetAllTheCats(foo),
    () => food = GetAllTheFood(foo)
);

Comments

Submit
0 Comments