##// END OF EJS Templates
Improved worker pool
Improved worker pool

File last commit:

r12:eb418ba8275b promises
r17:7cd4a843b4e4 promises
Show More
IPromise.cs
33 lines | 851 B | text/x-csharp | CSharpLexer
cin
inital progress handling
r7 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Implab
{
cin
refactoring, added WorkerPool
r12 public interface IPromise: ICancellable
cin
inital progress handling
r7 {
/// <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>
cin
implemeted new cancellable promises concept
r10 /// 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);
cin
inital progress handling
r7 }
}