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

◆ Wrap< TElement >()

static IEnumerable< TElement > System.Linq.Parallel.CancellableEnumerable.Wrap< TElement > ( IEnumerable< TElement > source,
CancellationToken token )
inlinestaticpackage

Definition at line 8 of file CancellableEnumerable.cs.

9 {
10 int count = 0;
11 foreach (TElement item in source)
12 {
13 if ((count++ & 0x3F) == 0)
14 {
16 }
17 yield return item;
18 }
19 }

References System.Linq.count, System.item, and System.Linq.source.