IPromiseBase.cs
37 lines
| 1019 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
|
r33 | IPromiseBase Error(ErrorHandler error); | ||
IPromiseBase Anyway(Action handler); | ||||
IPromiseBase Finally(Action handler); | ||||
IPromiseBase Cancelled(Action handler); | ||||
cin
|
r26 | |||
cin
|
r29 | IPromise<T> Cast<T>(); | ||
cin
|
r33 | void Join(); | ||
void Join(int timeout); | ||||
cin
|
r25 | } | ||
} | ||||