diff Implab/Parallels/ArrayTraits.cs @ 72:d67b95eddaf4 v2

promises refactoring
author cin
date Thu, 04 Sep 2014 18:47:12 +0400
parents d9d794b61bb9
children 4439140706d0
line wrap: on
line diff
--- a/Implab/Parallels/ArrayTraits.cs	Wed Sep 03 18:34:02 2014 +0400
+++ b/Implab/Parallels/ArrayTraits.cs	Thu Sep 04 18:47:12 2014 +0400
@@ -174,7 +174,10 @@
                                 if (left == 0)
                                     promise.Resolve(res);
                             },
-                            e => promise.Reject(e)
+                            e => {
+                                promise.Reject(e);
+                                throw new TransientPromiseException(e);
+                            }
                         );
 
                     } catch (Exception e) {