- Timestamp:
- 09/14/18 11:36:59 (6 years ago)
- Location:
- branches/2817-BinPackingSpeedup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup
- Property svn:mergeinfo changed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Common/3.3/AsyncHelper.cs
r15287 r16140 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 7Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using System; 23 using System.Linq;24 23 using System.Runtime.ExceptionServices; 25 24 using System.Threading; … … 38 37 } catch (OperationCanceledException) { 39 38 } catch (AggregateException ae) { 40 var e = ae.InnerExceptions.SingleOrDefault() ?? ae; 41 ExceptionDispatchInfo.Capture(e).Throw(); 39 ae.FlattenAndHandle(new[] { typeof(OperationCanceledException) }, e => ExceptionDispatchInfo.Capture(e).Throw()); 42 40 } 43 41 }
Note: See TracChangeset
for help on using the changeset viewer.