Mercurial > pub > ImplabNet
diff 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 |
line wrap: on
line diff
--- a/Implab/IPromiseBase.cs Mon Mar 03 09:00:23 2014 +0400 +++ b/Implab/IPromiseBase.cs Thu Mar 06 17:59:03 2014 +0400 @@ -12,6 +12,11 @@ get; } + /// <summary> + /// Тип результата, получаемого через данное обещание. + /// </summary> + Type PromiseType { get; } + bool IsResolved { get; } bool IsCancelled { get; } @@ -19,5 +24,7 @@ IPromiseBase Then(Action success,ErrorHandler error); IPromiseBase Then(Action success); + IPromise<T> Cast<T>(); + } }