I should use Parallel.ForEach loop, and inside there should be call to method.
Parallel.ForEach(myList, item => {
DoSomethingWithItem(item);
}
);
Should that method be Task or whatever?
private Task DoSomethingWithItem(MyClass item);
Also, this method shouldn't have return type, but I have warning "not all code paths return a value". Tried to put void keyword but seems it doesn't go in same context with Task keyword.