comparison Implab/IPromiseT.cs @ 106:d4e38929ce36 v2

promises refactoring
author cin
date Mon, 10 Nov 2014 18:00:28 +0300
parents 5f10d54b45df
children 2573b562e328
comparison
equal deleted inserted replaced
105:4d308952fd5e 106:d4e38929ce36
10 void On(Action<T> success, Action<Exception> error, Action cancel); 10 void On(Action<T> success, Action<Exception> error, Action cancel);
11 11
12 void On(Action<T> success, Action<Exception> error); 12 void On(Action<T> success, Action<Exception> error);
13 13
14 void On(Action<T> success); 14 void On(Action<T> success);
15
16 IPromise<T> Then(Action<T> success, Func<Exception,T> error, Action cancel);
17
18 IPromise<T> Then(Action<T> success, Func<Exception,T> error);
19
20 IPromise<T> Then(Action<T> success);
21 15
22 IPromise<T2> Then<T2>(Func<T, T2> mapper, Func<Exception,T2> error, Action cancel); 16 IPromise<T2> Then<T2>(Func<T, T2> mapper, Func<Exception,T2> error, Action cancel);
23 17
24 IPromise<T2> Then<T2>(Func<T, T2> mapper, Func<Exception,T2> error); 18 IPromise<T2> Then<T2>(Func<T, T2> mapper, Func<Exception,T2> error);
25 19