annotate Implab/IPromiseT.cs @ 94:a43745f81f10 v2

minor fixes
author cin
date Thu, 23 Oct 2014 17:50:09 +0400
parents c761fc982e1d
children 279e226dffdd
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
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
10 void Last(ResultHandler<T> success, ErrorHandler error, Action cancel);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
11
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
12 void Last(ResultHandler<T> success, ErrorHandler error);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
13
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
14 void Last(ResultHandler<T> success);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
15
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
16 IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error, Action cancel);
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
17
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
18 IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
19
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
20 IPromise<T> Then(ResultHandler<T> success);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
21
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
22 IPromise<T2> Then<T2>(ResultMapper<T, T2> mapper, ErrorHandler<T2> error, Action cancel);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
23
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
24 IPromise<T2> Then<T2>(ResultMapper<T, T2> mapper, ErrorHandler<T2> error);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
25
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
26 IPromise<T2> Then<T2>(ResultMapper<T, T2> mapper);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
27
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
28 IPromise<T2> Chain<T2>(ResultMapper<T, IPromise<T2>> chained, ErrorHandler<IPromise<T2>> error, Action cancel);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
29
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
30 IPromise<T2> Chain<T2>(ResultMapper<T, IPromise<T2>> chained, ErrorHandler<IPromise<T2>> error);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
31
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
32 IPromise<T2> Chain<T2>(ResultMapper<T, IPromise<T2>> chained);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
33
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
34 IPromise<T> Error(ErrorHandler<T> error);
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 }