Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ExecutionDataflowBlockOptions.cs
Go to the documentation of this file.
2
4
5[DebuggerDisplay("TaskScheduler = {TaskScheduler}, MaxMessagesPerTask = {MaxMessagesPerTask}, BoundedCapacity = {BoundedCapacity}, MaxDegreeOfParallelism = {MaxDegreeOfParallelism}")]
7{
9
10 private int _maxDegreeOfParallelism = 1;
11
13
15 {
16 get
17 {
19 }
20 set
21 {
22 if (value < 1 && value != -1)
23 {
24 throw new ArgumentOutOfRangeException("value");
25 }
27 }
28 }
29
31 {
32 get
33 {
35 }
36 set
37 {
39 }
40 }
41
43 {
44 get
45 {
47 {
49 }
50 return int.MaxValue;
51 }
52 }
53
55 {
56 get
57 {
59 {
60 return _maxDegreeOfParallelism > 1;
61 }
62 return true;
63 }
64 }
65
67 {
68 if (this != Default)
69 {
71 {
74 MaxMessagesPerTask = base.MaxMessagesPerTask,
75 BoundedCapacity = base.BoundedCapacity,
76 NameFormat = base.NameFormat,
77 EnsureOrdered = base.EnsureOrdered,
80 };
81 }
82 return this;
83 }
84}
CancellationToken(CancellationTokenSource source)