Answers for "Run Tasks in Parallel"

C#
0

Run Tasks in Parallel

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

Parallel.Invoke
(
    () => cats = GetAllTheCats(foo),
    () => food = GetAllTheFood(foo)
);
Posted by: Guest on August-16-2021

C# Answers by Framework

Browse Popular Code Answers by Language