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
|
29
|
15 /// <summary>
|
|
16 /// Тип результата, получаемого через данное обещание.
|
|
17 /// </summary>
|
|
18 Type PromiseType { get; }
|
|
19
|
25
|
20 bool IsResolved { get; }
|
|
21
|
|
22 bool IsCancelled { get; }
|
26
|
23
|
|
24 IPromiseBase Then(Action success,ErrorHandler error);
|
|
25 IPromiseBase Then(Action success);
|
|
26
|
29
|
27 IPromise<T> Cast<T>();
|
|
28
|
25
|
29 }
|
|
30 }
|