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