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

◆ SpoolingWork()

override void System.Linq.Parallel.StopAndGoSpoolingTask< TInputOutput, TIgnoreKey >.SpoolingWork ( )
inlineprotected

Definition at line 18 of file StopAndGoSpoolingTask.cs.

19 {
20 TInputOutput currentElement = default(TInputOutput);
21 TIgnoreKey currentKey = default(TIgnoreKey);
22 QueryOperatorEnumerator<TInputOutput, TIgnoreKey> source = _source;
23 SynchronousChannel<TInputOutput> destination = _destination;
25 destination.Init();
26 while (source.MoveNext(ref currentElement, ref currentKey) && !mergedCancellationToken.IsCancellationRequested)
27 {
28 destination.Enqueue(currentElement);
29 }
30 }
QueryTaskGroupState _groupState
Definition QueryTask.cs:10
readonly QueryOperatorEnumerator< TInputOutput, TIgnoreKey > _source
readonly SynchronousChannel< TInputOutput > _destination

References System.Linq.Parallel.StopAndGoSpoolingTask< TInputOutput, TIgnoreKey >._destination, System.Linq.Parallel.QueryTask._groupState, System.Linq.Parallel.StopAndGoSpoolingTask< TInputOutput, TIgnoreKey >._source, System.Linq.Parallel.QueryTaskGroupState.CancellationState, System.destination, System.Threading.CancellationToken.IsCancellationRequested, System.Linq.Parallel.CancellationState.MergedCancellationToken, and System.Linq.source.