IPromiseBase.cs
23 lines
| 546 B
| text/x-csharp
|
CSharpLexer
/ Implab / IPromiseBase.cs
cin
|
r25 | 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; | ||||
} | ||||
bool IsResolved { get; } | ||||
bool IsCancelled { get; } | ||||
cin
|
r26 | |||
IPromiseBase Then(Action success,ErrorHandler error); | ||||
IPromiseBase Then(Action success); | ||||
cin
|
r25 | } | ||
} | ||||