annotate Implab/IPromiseT.cs @ 104:5f10d54b45df v2

renamed Promise.Last -> Promise.On Promise.On doesn't changes Promise.IsExclusive property
author cin
date Sun, 09 Nov 2014 23:03:45 +0300
parents 279e226dffdd
children d4e38929ce36
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<T> Then(Action<T> success, Func<Exception,T> error, Action cancel);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
17
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
18 IPromise<T> Then(Action<T> success, Func<Exception,T> error);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
19
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
20 IPromise<T> Then(Action<T> success);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
21
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
22 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
23
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
24 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
25
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
26 IPromise<T2> Then<T2>(Func<T, T2> mapper);
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
27
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
28 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
29
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
30 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
31
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
32 IPromise<T2> Chain<T2>(Func<T, IPromise<T2>> chained);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
33
101
279e226dffdd code cleanup
cin
parents: 94
diff changeset
34 IPromise<T> Error(Func<Exception,T> error);
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
35
790e8a997d30 Refactoring
cin
parents:
diff changeset
36 new IPromise<T> Cancelled(Action handler);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
37
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
38 new IPromise<T> Anyway(Action handler);
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
39 }
790e8a997d30 Refactoring
cin
parents:
diff changeset
40 }