annotate Implab/IPromiseT.cs @ 75:4439140706d0 v2

major refactoring, added tasks support
author cin
date Wed, 10 Sep 2014 11:17:37 +0400
parents d67b95eddaf4
children c761fc982e1d
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 {
4439140706d0 major refactoring, added tasks support
cin
parents: 72
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
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
13 IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error, Action cancel);
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
14
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
15 IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
16
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
17 IPromise<T> Then(ResultHandler<T> success);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
18
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
19 void Last(ResultHandler<T> success, ErrorHandler error, Action cancel);
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
20 void Last(ResultHandler<T> success, ErrorHandler error);
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
21 void Last(ResultHandler<T> success);
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
22
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
23 IPromise<T> Error(ErrorHandler<T> error);
790e8a997d30 Refactoring
cin
parents:
diff changeset
24
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
25 IPromise<T2> Then<T2>(ResultMapper<T,T2> mapper, ErrorHandler<T> error);
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
26
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
27 IPromise<T2> Then<T2>(ResultMapper<T,T2> mapper);
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
28
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
29 IPromise<T2> Then<T2>(ChainedOperation<T, T2> chained, ErrorHandler<T> error);
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
30
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
31 IPromise<T2> Then<T2>(ChainedOperation<T, T2> chained);
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
32
790e8a997d30 Refactoring
cin
parents:
diff changeset
33 new IPromise<T> Cancelled(Action handler);
75
4439140706d0 major refactoring, added tasks support
cin
parents: 72
diff changeset
34
66
790e8a997d30 Refactoring
cin
parents:
diff changeset
35 new IPromise<T> Finally(Action handler);
790e8a997d30 Refactoring
cin
parents:
diff changeset
36 }
790e8a997d30 Refactoring
cin
parents:
diff changeset
37 }