diff Implab/IPromiseT.cs @ 144:8c0b95069066 v2

DRAFT: refactoring
author cin
date Fri, 06 Mar 2015 15:45:26 +0300
parents f75cfa58e3d4
children cbe10ac0731e
line wrap: on
line diff
--- a/Implab/IPromiseT.cs	Wed Mar 04 18:05:39 2015 +0300
+++ b/Implab/IPromiseT.cs	Fri Mar 06 15:45:26 2015 +0300
@@ -3,28 +3,23 @@
 namespace Implab {
     public interface IPromise<out T> : IPromise {
 
-        new T Join();
-
-        new T Join(int timeout);
-
         IPromise<T> On(Action<T> success, Action<Exception> error, Action<Exception> cancel);
         
         IPromise<T> On(Action<T> success, Action<Exception> error);
 
         IPromise<T> On(Action<T> success);
 
+        new T Join();
+
+        new T Join(int timeout);
+
+        new IPromise<T> On(Action success, Action<Exception> error, Action<Exception> cancel);
+
+        new IPromise<T> On(Action success, Action<Exception> error);
+
+        new IPromise<T> On(Action success);
+
         new IPromise<T> On(Action handler, PromiseEventType events);
 
-        IPromise<T2> Then<T2>(Func<T, T2> mapper, Func<Exception, T2> error, Func<Exception, T2> cancel);
-
-        IPromise<T2> Then<T2>(Func<T, T2> mapper, Func<Exception, T2> error);
-
-        IPromise<T2> Then<T2>(Func<T, T2> mapper);
-
-        IPromise<T2> Chain<T2>(Func<T, IPromise<T2>> chained, Func<Exception, IPromise<T2>> error, Func<Exception, IPromise<T2>> cancel);
-
-        IPromise<T2> Chain<T2>(Func<T, IPromise<T2>> chained, Func<Exception, IPromise<T2>> error);
-
-        IPromise<T2> Chain<T2>(Func<T, IPromise<T2>> chained);
     }
 }