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