##// END OF EJS Templates
small refactoring, cleanup.
small refactoring, cleanup.

File last commit:

r29:768f7deeb55b default
r30:2fad2d1f4b03 default
Show More
IPromiseBase.cs
30 lines | 771 B | text/x-csharp | CSharpLexer
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;
}
/// <summary>
/// Тип результата, получаемого через данное обещание.
/// </summary>
Type PromiseType { get; }
bool IsResolved { get; }
bool IsCancelled { get; }
IPromiseBase Then(Action success,ErrorHandler error);
IPromiseBase Then(Action success);
IPromise<T> Cast<T>();
}
}