##// END OF EJS Templates
small fixes, WorkerPool still incomplete
small fixes, WorkerPool still incomplete

File last commit:

r12:eb418ba8275b promises
r13:b0feb5b9ad1c promises
Show More
IPromise.cs
33 lines | 851 B | text/x-csharp | CSharpLexer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Implab
{
public interface IPromise: ICancellable
{
/// <summary>
/// Check whereather the promise has no more than one dependent promise.
/// </summary>
bool IsExclusive
{
get;
}
/// <summary>
/// The current state of the promise.
/// </summary>
PromiseState State
{
get;
}
/// <summary>
/// Registers handler for the case when the promise is cencelled. If the promise already cancelled the
/// handler will be invoked immediatelly.
/// </summary>
/// <param name="handler">The handler</param>
void HandleCancelled(Action handler);
}
}