System.Collections.Concurrent.BlockingCollection.Add(TOutput)

Here are the examples of the csharp api class System.Collections.Concurrent.BlockingCollection.Add(TOutput) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: misakai-baker
Source File: IPipeline.cs
protected virtual void ProcessCore(IEnumerable<TInput> source, CancellationToken cancellationToken, BlockingCollection<TOutput> output)
        {
            var options = new ParallelOptions
            {
                CancellationToken = cancellationToken,
                MaxDegreeOfParallelism = DegreeOfParallelism,
                TaskScheduler = Pipeline.Scheduler
            };
            Parallel.ForEach(source, options, item => output.Add(Executor(item)));
        }