comparison Implab/IPromiseT.cs @ 72:d67b95eddaf4 v2

promises refactoring
author cin
date Thu, 04 Sep 2014 18:47:12 +0400
parents 790e8a997d30
children 4439140706d0
comparison
equal deleted inserted replaced
71:1714fd8678ef 72:d67b95eddaf4
9 { 9 {
10 10
11 new T Join(); 11 new T Join();
12 new T Join(int timeout); 12 new T Join(int timeout);
13 13
14 IPromise<T> Then(ResultHandler<T> success, ErrorHandler error);
15 IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error); 14 IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error);
16 IPromise<T> Then(ResultHandler<T> success); 15 IPromise<T> Then(ResultHandler<T> success);
17 new IPromise<T> Error(ErrorHandler error);
18 IPromise<T> Error(ErrorHandler<T> error); 16 IPromise<T> Error(ErrorHandler<T> error);
19 17
20 IPromise<T2> Map<T2>(ResultMapper<T,T2> mapper, ErrorHandler error); 18 IPromise<T2> Map<T2>(ResultMapper<T,T2> mapper, ErrorHandler<T> error);
21 IPromise<T2> Map<T2>(ResultMapper<T, T2> mapper); 19 IPromise<T2> Map<T2>(ResultMapper<T, T2> mapper);
22 20
23 IPromise<T2> Chain<T2>(ChainedOperation<T, T2> chained, ErrorHandler error); 21 IPromise<T2> Chain<T2>(ChainedOperation<T, T2> chained, ErrorHandler<T> error);
24 IPromise<T2> Chain<T2>(ChainedOperation<T, T2> chained); 22 IPromise<T2> Chain<T2>(ChainedOperation<T, T2> chained);
25 23
26 new IPromise<T> Cancelled(Action handler); 24 new IPromise<T> Cancelled(Action handler);
27 new IPromise<T> Finally(Action handler); 25 new IPromise<T> Finally(Action handler);
28 new IPromise<T> Anyway(Action handler); 26 new IPromise<T> Anyway(Action handler);