diff Implab.Fx/PromiseHelpers.cs @ 119:2573b562e328 v2

Promises rewritten, added improved version of AsyncQueue
author cin
date Sun, 11 Jan 2015 19:13:02 +0300
parents 5f10d54b45df
children
line wrap: on
line diff
--- a/Implab.Fx/PromiseHelpers.cs	Sun Dec 28 16:09:03 2014 +0300
+++ b/Implab.Fx/PromiseHelpers.cs	Sun Jan 11 19:13:02 2015 +0300
@@ -27,7 +27,9 @@
             Safe.ArgumentNotNull(that, "that");
             Safe.ArgumentNotNull(ctl, "ctl");
 
-            var directed = new ControlBoundPromise<T>(ctl,that);
+            var directed = new ControlBoundPromise<T>(ctl);
+
+            directed.On(that.Cancel, PromiseEventType.Cancelled);
 
             that.On(
                 directed.Resolve,