using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Implab { public interface IPromise { /// /// Check whereather the promise has no more than one dependent promise. /// bool IsExclusive { get; } /// /// The current state of the promise. /// PromiseState State { get; } /// /// Tries to cancel the promise or the complete chain. /// /// Try to cancel the parent promise is it has the only one child /// bool Cancel(bool dependencies); } }