##// END OF EJS Templates
small refactoring
small refactoring

File last commit:

r33:b255e4aeef17 default
r64:a809805210d1 default
Show More
IPromiseBase.cs
37 lines | 1019 B | text/x-csharp | CSharpLexer
cin
refactoring
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
Added a casting method for promises.
r29 /// <summary>
/// Тип результата, получаемого через данное обещание.
/// </summary>
Type PromiseType { get; }
cin
refactoring
r25 bool IsResolved { get; }
bool IsCancelled { get; }
cin
refactoring
r26
IPromiseBase Then(Action success,ErrorHandler error);
IPromiseBase Then(Action success);
cin
removed the reference to the parent from the promise object this allows...
r33 IPromiseBase Error(ErrorHandler error);
IPromiseBase Anyway(Action handler);
IPromiseBase Finally(Action handler);
IPromiseBase Cancelled(Action handler);
cin
refactoring
r26
cin
Added a casting method for promises.
r29 IPromise<T> Cast<T>();
cin
removed the reference to the parent from the promise object this allows...
r33 void Join();
void Join(int timeout);
cin
refactoring
r25 }
}