##// END OF EJS Templates
sync
sync

File last commit:

r7:7ea9363fef6c promises
r8:849075f49d5c promises
Show More
IPromise.cs
33 lines | 820 B | text/x-csharp | CSharpLexer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Implab
{
public interface IPromise
{
/// <summary>
/// Check whereather the promise has no more than one dependent promise.
/// </summary>
bool IsExclusive
{
get;
}
/// <summary>
/// The current state of the promise.
/// </summary>
PromiseState State
{
get;
}
/// <summary>
/// Tries to cancel the promise or the complete chain.
/// </summary>
/// <param name="dependencies">Try to cancel the parent promise is it has the only one child</param>
/// <returns></returns>
bool Cancel(bool dependencies);
}
}