diff Implab/IPromiseBase.cs @ 33:b255e4aeef17

removed the reference to the parent from the promise object this allows resolved promises to release parents and results they are holding. Added complete set of operations to IPromiseBase interface Subscribing to the cancellation event of the promise should not affect it's IsExclusive property More tests.
author cin
date Thu, 10 Apr 2014 02:39:29 +0400
parents 768f7deeb55b
children
line wrap: on
line diff
--- a/Implab/IPromiseBase.cs	Tue Apr 08 23:25:01 2014 +0400
+++ b/Implab/IPromiseBase.cs	Thu Apr 10 02:39:29 2014 +0400
@@ -23,8 +23,15 @@
 
         IPromiseBase Then(Action success,ErrorHandler error);
         IPromiseBase Then(Action success);
+        IPromiseBase Error(ErrorHandler error);
+        IPromiseBase Anyway(Action handler);
+        IPromiseBase Finally(Action handler);
+        IPromiseBase Cancelled(Action handler);
 
         IPromise<T> Cast<T>();
 
+        void Join();
+        void Join(int timeout);
+
     }
 }