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

◆ Choose< T1, T2 >() [2/2]

static Task< int > System.Threading.Tasks.Dataflow.DataflowBlock.Choose< T1, T2 > ( ISourceBlock< T1 > source1,
Action< T1 > action1,
ISourceBlock< T2 > source2,
Action< T2 > action2,
DataflowBlockOptions dataflowBlockOptions )
inlinestatic

Definition at line 1515 of file DataflowBlock.cs.

1516 {
1517 if (source1 == null)
1518 {
1519 throw new ArgumentNullException("source1");
1520 }
1521 if (action1 == null)
1522 {
1523 throw new ArgumentNullException("action1");
1524 }
1525 if (source2 == null)
1526 {
1527 throw new ArgumentNullException("source2");
1528 }
1529 if (action2 == null)
1530 {
1531 throw new ArgumentNullException("action2");
1532 }
1533 if (dataflowBlockOptions == null)
1534 {
1535 throw new ArgumentNullException("dataflowBlockOptions");
1536 }
1538 }