comparison Implab/IPromiseBase.cs @ 29:768f7deeb55b

Added a casting method for promises.
author cin
date Thu, 06 Mar 2014 17:59:03 +0400
parents f0bf98e4d22c
children b255e4aeef17
comparison
equal deleted inserted replaced
28:81708975d6f7 29:768f7deeb55b
10 /// </summary> 10 /// </summary>
11 bool IsExclusive { 11 bool IsExclusive {
12 get; 12 get;
13 } 13 }
14 14
15 /// <summary>
16 /// Тип результата, получаемого через данное обещание.
17 /// </summary>
18 Type PromiseType { get; }
19
15 bool IsResolved { get; } 20 bool IsResolved { get; }
16 21
17 bool IsCancelled { get; } 22 bool IsCancelled { get; }
18 23
19 IPromiseBase Then(Action success,ErrorHandler error); 24 IPromiseBase Then(Action success,ErrorHandler error);
20 IPromiseBase Then(Action success); 25 IPromiseBase Then(Action success);
21 26
27 IPromise<T> Cast<T>();
28
22 } 29 }
23 } 30 }