IPromiseBase.cs
30 lines
| 771 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; | ||||
} | ||||
cin
|
r29 | /// <summary> | ||
/// Тип результата, получаемого через данное обещание. | ||||
/// </summary> | ||||
Type PromiseType { get; } | ||||
cin
|
r25 | bool IsResolved { get; } | ||
bool IsCancelled { get; } | ||||
cin
|
r26 | |||
IPromiseBase Then(Action success,ErrorHandler error); | ||||
IPromiseBase Then(Action success); | ||||
cin
|
r29 | IPromise<T> Cast<T>(); | ||
cin
|
r25 | } | ||
} | ||||