annotate Implab/IPromiseT.cs @ 116:da56ba7b1aab v2

minor refactoring
author cin
date Tue, 23 Dec 2014 03:20:39 +0300
parents d4e38929ce36
children 2573b562e328
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
1 using System;
790e8a997d30 Refactoring
cin
parents:
diff changeset
2
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
3 namespace Implab {
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
4 public interface IPromise<T> : IPromise {
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
5
790e8a997d30 Refactoring
cin
parents:
diff changeset
6 new T Join();
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
7
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
8 new T Join(int timeout);
790e8a997d30 Refactoring
cin
parents:
diff changeset
9
104
5f10d54b45df renamed Promise.Last -> Promise.On
cin
parents: 101
diff changeset
10 void On(Action<T> success, Action<Exception> error, Action cancel);
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
11
104
5f10d54b45df renamed Promise.Last -> Promise.On
cin
parents: 101
diff changeset
12 void On(Action<T> success, Action<Exception> error);
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
13
104
5f10d54b45df renamed Promise.Last -> Promise.On
cin
parents: 101
diff changeset
14 void On(Action<T> success);
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
15
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
16 IPromise<T2> Then<T2>(Func<T, T2> mapper, Func<Exception,T2> error, Action cancel);
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
17
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
18 IPromise<T2> Then<T2>(Func<T, T2> mapper, Func<Exception,T2> error);
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
19
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
20 IPromise<T2> Then<T2>(Func<T, T2> mapper);
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
21
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
22 IPromise<T2> Chain<T2>(Func<T, IPromise<T2>> chained, Func<Exception,IPromise<T2>> error, Action cancel);
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
23
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
24 IPromise<T2> Chain<T2>(Func<T, IPromise<T2>> chained, Func<Exception,IPromise<T2>> error);
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
25
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
26 IPromise<T2> Chain<T2>(Func<T, IPromise<T2>> chained);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
27
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
28 IPromise<T> Error(Func<Exception,T> error);
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
29
790e8a997d30 Refactoring
cin
parents:
diff changeset
30 new IPromise<T> Cancelled(Action handler);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
31
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
32 new IPromise<T> Anyway(Action handler);
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
33 }
790e8a997d30 Refactoring
cin
parents:
diff changeset
34 }