diff Implab/IPromiseT.cs @ 72:d67b95eddaf4 v2

promises refactoring
author cin
date Thu, 04 Sep 2014 18:47:12 +0400
parents 790e8a997d30
children 4439140706d0
line wrap: on
line diff
--- a/Implab/IPromiseT.cs	Wed Sep 03 18:34:02 2014 +0400
+++ b/Implab/IPromiseT.cs	Thu Sep 04 18:47:12 2014 +0400
@@ -11,16 +11,14 @@
         new T Join();
         new T Join(int timeout);
 
-        IPromise<T> Then(ResultHandler<T> success, ErrorHandler error);
         IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error);
         IPromise<T> Then(ResultHandler<T> success);
-        new IPromise<T> Error(ErrorHandler error);
         IPromise<T> Error(ErrorHandler<T> error);
 
-        IPromise<T2> Map<T2>(ResultMapper<T,T2> mapper, ErrorHandler error);
+        IPromise<T2> Map<T2>(ResultMapper<T,T2> mapper, ErrorHandler<T> error);
         IPromise<T2> Map<T2>(ResultMapper<T, T2> mapper);
 
-        IPromise<T2> Chain<T2>(ChainedOperation<T, T2> chained, ErrorHandler error);
+        IPromise<T2> Chain<T2>(ChainedOperation<T, T2> chained, ErrorHandler<T> error);
         IPromise<T2> Chain<T2>(ChainedOperation<T, T2> chained);
 
         new IPromise<T> Cancelled(Action handler);