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

◆ ChooseCore< T1, T2, T3 >()

static Task< int > System.Threading.Tasks.Dataflow.DataflowBlock.ChooseCore< T1, T2, T3 > ( ISourceBlock< T1 > source1,
Action< T1 > action1,
ISourceBlock< T2 > source2,
Action< T2 > action2,
ISourceBlock< T3 > source3,
Action< T3 > action3,
DataflowBlockOptions dataflowBlockOptions )
inlinestaticprivate

Definition at line 1578 of file DataflowBlock.cs.

1579 {
1580 bool flag = source3 != null;
1581 if (dataflowBlockOptions.CancellationToken.IsCancellationRequested)
1582 {
1583 return Common.CreateTaskFromCancellation<int>(dataflowBlockOptions.CancellationToken);
1584 }
1585 try
1586 {
1587 TaskScheduler taskScheduler = dataflowBlockOptions.TaskScheduler;
1589 {
1590 return task;
1591 }
1592 }
1593 catch (Exception exception)
1594 {
1595 return Common.CreateTaskFromException<int>(exception);
1596 }
1598 }

References System.exception, and System.task.