Chapter 1.2 C# – Parrallel LINQ

PLINQ can be used to turn a sequential query into a parallel one.

PLINQ are defined in System.Linq.ParallelEnumerable

AsSequential() stops the query being processed in parell. But in order to preserve the ordering you must use the take method so that it doesn’t mess up your order.

ForAll does not need all the results before it starts showing them.

Any errors are caught by using the exception handler AggregateException

Leave a Reply

Your email address will not be published. Required fields are marked *