annotate Implab/IPromiseT.cs @ 80:4f20870d0816 v2

added memory barriers
author cin
date Fri, 26 Sep 2014 03:32:34 +0400
parents c761fc982e1d
children a43745f81f10
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 using System.Collections.Generic;
790e8a997d30 Refactoring
cin
parents:
diff changeset
3 using System.Linq;
790e8a997d30 Refactoring
cin
parents:
diff changeset
4 using System.Text;
790e8a997d30 Refactoring
cin
parents:
diff changeset
5
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
6 namespace Implab {
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
7 public interface IPromise<T> : IPromise {
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
8
790e8a997d30 Refactoring
cin
parents:
diff changeset
9 new T Join();
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
10
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
11 new T Join(int timeout);
790e8a997d30 Refactoring
cin
parents:
diff changeset
12
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
13 void Last(ResultHandler<T> success, ErrorHandler error, Action cancel);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
14
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
15 void Last(ResultHandler<T> success, ErrorHandler error);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
16
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
17 void Last(ResultHandler<T> success);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
18
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
19 IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error, Action cancel);
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
20
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
21 IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
22
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
23 IPromise<T> Then(ResultHandler<T> success);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
24
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
25 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
26
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
27 IPromise<T2> Then<T2>(ResultMapper<T, T2> mapper, ErrorHandler<T2> error);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
28
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
29 IPromise<T2> Then<T2>(ResultMapper<T, T2> mapper);
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
30
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
31 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
32
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
33 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
34
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
35 IPromise<T2> Chain<T2>(ResultMapper<T, IPromise<T2>> chained);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
36
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
37 IPromise<T> Error(ErrorHandler<T> error);
790e8a997d30 Refactoring
cin
parents:
diff changeset
38
790e8a997d30 Refactoring
cin
parents:
diff changeset
39 new IPromise<T> Cancelled(Action handler);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
40
76
c761fc982e1d Refactoring of the IPromise<T> interface
cin
parents: 75
diff changeset
41 new IPromise<T> Anyway(Action handler);
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
42 }
790e8a997d30 Refactoring
cin
parents:
diff changeset
43 }