annotate Implab/IPromiseBase.cs @ 26:f0bf98e4d22c

refactoring
author cin
date Fri, 21 Feb 2014 03:15:28 +0400
parents 9bf5b23650c9
children 768f7deeb55b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25
9bf5b23650c9 refactoring
cin
parents:
diff changeset
1 using System;
9bf5b23650c9 refactoring
cin
parents:
diff changeset
2 using System.Collections.Generic;
9bf5b23650c9 refactoring
cin
parents:
diff changeset
3 using System.Linq;
9bf5b23650c9 refactoring
cin
parents:
diff changeset
4 using System.Text;
9bf5b23650c9 refactoring
cin
parents:
diff changeset
5
9bf5b23650c9 refactoring
cin
parents:
diff changeset
6 namespace Implab {
9bf5b23650c9 refactoring
cin
parents:
diff changeset
7 public interface IPromiseBase: ICancellable {
9bf5b23650c9 refactoring
cin
parents:
diff changeset
8 /// <summary>
9bf5b23650c9 refactoring
cin
parents:
diff changeset
9 /// Check whereather the promise has no more than one dependent promise.
9bf5b23650c9 refactoring
cin
parents:
diff changeset
10 /// </summary>
9bf5b23650c9 refactoring
cin
parents:
diff changeset
11 bool IsExclusive {
9bf5b23650c9 refactoring
cin
parents:
diff changeset
12 get;
9bf5b23650c9 refactoring
cin
parents:
diff changeset
13 }
9bf5b23650c9 refactoring
cin
parents:
diff changeset
14
9bf5b23650c9 refactoring
cin
parents:
diff changeset
15 bool IsResolved { get; }
9bf5b23650c9 refactoring
cin
parents:
diff changeset
16
9bf5b23650c9 refactoring
cin
parents:
diff changeset
17 bool IsCancelled { get; }
26
f0bf98e4d22c refactoring
cin
parents: 25
diff changeset
18
f0bf98e4d22c refactoring
cin
parents: 25
diff changeset
19 IPromiseBase Then(Action success,ErrorHandler error);
f0bf98e4d22c refactoring
cin
parents: 25
diff changeset
20 IPromiseBase Then(Action success);
f0bf98e4d22c refactoring
cin
parents: 25
diff changeset
21
25
9bf5b23650c9 refactoring
cin
parents:
diff changeset
22 }
9bf5b23650c9 refactoring
cin
parents:
diff changeset
23 }