Mercurial > pub > ImplabNet
view Implab/IPromiseBase.cs @ 40:fe33f4e02ad5
improved tracing
added text listeners (file,console)
author | cin |
---|---|
date | Tue, 15 Apr 2014 17:52:09 +0400 |
parents | b255e4aeef17 |
children |
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); IPromiseBase Error(ErrorHandler error); IPromiseBase Anyway(Action handler); IPromiseBase Finally(Action handler); IPromiseBase Cancelled(Action handler); IPromise<T> Cast<T>(); void Join(); void Join(int timeout); } }