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

◆ WrapFunc< T, U >()

static Func< T, U > System.Linq.Parallel.ExceptionAggregator.WrapFunc< T, U > ( Func< T, U > f,
CancellationState cancellationState )
inlinestaticpackage

Definition at line 67 of file ExceptionAggregator.cs.

68 {
69 return delegate(T t)
70 {
71 U result = default(U);
72 try
73 {
74 result = f(t);
75 return result;
76 }
77 catch (Exception ex)
78 {
80 }
81 return result;
82 };
83 }
static void ThrowOCEorAggregateException(Exception ex, CancellationState cancellationState)

References System.Linq.Parallel.ExceptionAggregator.ThrowOCEorAggregateException().