Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Execute()

Implements System.Linq.Parallel.IMergeHelper< TInputOutput >.

Definition at line 52 of file DefaultMergeHelper.cs.

53 {
54 if (_asyncChannels != null)
55 {
56 SpoolingTask.SpoolPipeline(_taskGroupState, _partitions, _asyncChannels, _taskScheduler);
57 }
58 else if (_syncChannels != null)
59 {
60 SpoolingTask.SpoolStopAndGo(_taskGroupState, _partitions, _syncChannels, _taskScheduler);
61 }
62 else if (_ignoreOutput)
63 {
64 SpoolingTask.SpoolForAll(_taskGroupState, _partitions, _taskScheduler);
65 }
66 }
readonly PartitionedStream< TInputOutput, TIgnoreKey > _partitions
readonly SynchronousChannel< TInputOutput >[] _syncChannels
readonly QueryTaskGroupState _taskGroupState
readonly AsynchronousChannel< TInputOutput >[] _asyncChannels

References System.Linq.Parallel.DefaultMergeHelper< TInputOutput, TIgnoreKey >._asyncChannels, System.Linq.Parallel.DefaultMergeHelper< TInputOutput, TIgnoreKey >._ignoreOutput, System.Linq.Parallel.DefaultMergeHelper< TInputOutput, TIgnoreKey >._partitions, System.Linq.Parallel.DefaultMergeHelper< TInputOutput, TIgnoreKey >._syncChannels, System.Linq.Parallel.DefaultMergeHelper< TInputOutput, TIgnoreKey >._taskGroupState, and System.Linq.Parallel.DefaultMergeHelper< TInputOutput, TIgnoreKey >._taskScheduler.