Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ForAllSpoolingTask.cs
Go to the documentation of this file.
1
namespace
System.Linq.Parallel
;
2
3
internal
sealed
class
ForAllSpoolingTask
<TInputOutput, TIgnoreKey> :
SpoolingTaskBase
4
{
5
private
readonly
QueryOperatorEnumerator<TInputOutput, TIgnoreKey>
_source
;
6
7
internal
ForAllSpoolingTask
(
int
taskIndex,
QueryTaskGroupState
groupState,
QueryOperatorEnumerator<TInputOutput, TIgnoreKey>
source
)
8
: base(taskIndex, groupState)
9
{
10
_source
=
source
;
11
}
12
13
protected
override
void
SpoolingWork
()
14
{
15
TInputOutput currentElement =
default
(TInputOutput);
16
TIgnoreKey currentKey =
default
(TIgnoreKey);
17
while
(
_source
.
MoveNext
(ref currentElement, ref currentKey))
18
{
19
}
20
}
21
22
protected
override
void
SpoolingFinally
()
23
{
24
base.SpoolingFinally();
25
_source
.
Dispose
();
26
}
27
}
System.Linq.Parallel.ForAllSpoolingTask.SpoolingFinally
override void SpoolingFinally()
Definition
ForAllSpoolingTask.cs:22
System.Linq.Parallel.ForAllSpoolingTask._source
readonly QueryOperatorEnumerator< TInputOutput, TIgnoreKey > _source
Definition
ForAllSpoolingTask.cs:5
System.Linq.Parallel.ForAllSpoolingTask.ForAllSpoolingTask
ForAllSpoolingTask(int taskIndex, QueryTaskGroupState groupState, QueryOperatorEnumerator< TInputOutput, TIgnoreKey > source)
Definition
ForAllSpoolingTask.cs:7
System.Linq.Parallel.ForAllSpoolingTask.SpoolingWork
override void SpoolingWork()
Definition
ForAllSpoolingTask.cs:13
System.Linq.Parallel.ForAllSpoolingTask
Definition
ForAllSpoolingTask.cs:4
System.Linq.Parallel.QueryOperatorEnumerator.MoveNext
bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TElement currentElement, [AllowNull] ref TKey currentKey)
System.Linq.Parallel.QueryOperatorEnumerator.Dispose
void Dispose()
Definition
QueryOperatorEnumerator.cs:44
System.Linq.Parallel.QueryOperatorEnumerator
Definition
QueryOperatorEnumerator.cs:8
System.Linq.Parallel.QueryTaskGroupState
Definition
QueryTaskGroupState.cs:7
System.Linq.Parallel.SpoolingTaskBase
Definition
SpoolingTaskBase.cs:4
System.Linq.Parallel
Definition
AnyAllSearchOperator.cs:5
System.Linq.ExceptionArgument.source
@ source
source
System.Linq.Parallel
System.Linq.Parallel
ForAllSpoolingTask.cs
Generated by
1.10.0