diff Implab/PromiseExtensions.cs @ 104:5f10d54b45df v2

renamed Promise.Last -> Promise.On Promise.On doesn't changes Promise.IsExclusive property
author cin
date Sun, 09 Nov 2014 23:03:45 +0300
parents 279e226dffdd
children 1b7ebcc52e5a
line wrap: on
line diff
--- a/Implab/PromiseExtensions.cs	Sat Nov 08 10:02:47 2014 +0300
+++ b/Implab/PromiseExtensions.cs	Sun Nov 09 23:03:45 2014 +0300
@@ -14,7 +14,7 @@
 
             var p = new SyncContextPromise<T>(context, that);
 
-            that.Last(
+            that.On(
                 p.Resolve,
                 p.Reject,
                 p.Cancel
@@ -28,7 +28,7 @@
 
             var p = new SyncContextPromise<T>(context, that);
 
-            that.Last(
+            that.On(
                 p.Resolve,
                 p.Reject,
                 p.Cancel
@@ -49,7 +49,7 @@
             Safe.ArgumentNotNull(that, "that");
             Safe.ArgumentNotNull(head, "head");
 
-            that.Last(null,null,() => head.Last(cleanup));
+            that.On(null,null,() => head.On(cleanup));
 
             return that;
         }
@@ -72,7 +72,7 @@
             Safe.ArgumentNotNull(that, "that");
             var tcs = new TaskCompletionSource<T>();
 
-            that.Last(tcs.SetResult, tcs.SetException, tcs.SetCanceled);
+            that.On(tcs.SetResult, tcs.SetException, tcs.SetCanceled);
 
             return tcs.Task;
         }