66
|
1 using System;
|
|
2
|
75
|
3 namespace Implab {
|
76
|
4 public interface IPromise<T> : IPromise {
|
66
|
5
|
|
6 new T Join();
|
75
|
7
|
66
|
8 new T Join(int timeout);
|
|
9
|
76
|
10 void Last(ResultHandler<T> success, ErrorHandler error, Action cancel);
|
|
11
|
|
12 void Last(ResultHandler<T> success, ErrorHandler error);
|
|
13
|
|
14 void Last(ResultHandler<T> success);
|
|
15
|
75
|
16 IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error, Action cancel);
|
|
17
|
66
|
18 IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error);
|
75
|
19
|
66
|
20 IPromise<T> Then(ResultHandler<T> success);
|
75
|
21
|
76
|
22 IPromise<T2> Then<T2>(ResultMapper<T, T2> mapper, ErrorHandler<T2> error, Action cancel);
|
|
23
|
|
24 IPromise<T2> Then<T2>(ResultMapper<T, T2> mapper, ErrorHandler<T2> error);
|
|
25
|
|
26 IPromise<T2> Then<T2>(ResultMapper<T, T2> mapper);
|
|
27
|
|
28 IPromise<T2> Chain<T2>(ResultMapper<T, IPromise<T2>> chained, ErrorHandler<IPromise<T2>> error, Action cancel);
|
|
29
|
|
30 IPromise<T2> Chain<T2>(ResultMapper<T, IPromise<T2>> chained, ErrorHandler<IPromise<T2>> error);
|
|
31
|
|
32 IPromise<T2> Chain<T2>(ResultMapper<T, IPromise<T2>> chained);
|
75
|
33
|
66
|
34 IPromise<T> Error(ErrorHandler<T> error);
|
|
35
|
|
36 new IPromise<T> Cancelled(Action handler);
|
75
|
37
|
76
|
38 new IPromise<T> Anyway(Action handler);
|
66
|
39 }
|
|
40 }
|