Mercurial > pub > ImplabNet
view Implab/IPromiseBase.cs @ 31:dafaadca5b9f
minor cleanup
author | cin |
---|---|
date | Mon, 07 Apr 2014 18:17:00 +0400 |
parents | 768f7deeb55b |
children | b255e4aeef17 |
line wrap: on
line source
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Implab { public interface IPromiseBase: ICancellable { /// <summary> /// Check whereather the promise has no more than one dependent promise. /// </summary> bool IsExclusive { get; } /// <summary> /// Тип результата, получаемого через данное обещание. /// </summary> Type PromiseType { get; } bool IsResolved { get; } bool IsCancelled { get; } IPromiseBase Then(Action success,ErrorHandler error); IPromiseBase Then(Action success); IPromise<T> Cast<T>(); } }