diff Implab/IPromise.cs @ 12:eb418ba8275b promises

refactoring, added WorkerPool
author cin
date Tue, 05 Nov 2013 19:55:34 +0400
parents 6ec82bf68c8e
children e3935fdf59a2
line wrap: on
line diff
--- a/Implab/IPromise.cs	Tue Nov 05 01:09:58 2013 +0400
+++ b/Implab/IPromise.cs	Tue Nov 05 19:55:34 2013 +0400
@@ -5,7 +5,7 @@
 
 namespace Implab
 {
-    public interface IPromise
+    public interface IPromise: ICancellable
     {
         /// <summary>
         /// Check whereather the promise has no more than one dependent promise.
@@ -24,12 +24,6 @@
         }
 
         /// <summary>
-        /// Tries to cancel the the complete chain of promises.
-        /// </summary>
-        /// <returns><c>true</c> -  if the promise has been cancelled, otherwise the promise will be resolved (or resolved already).</returns>
-        bool Cancel();
-
-        /// <summary>
         /// Registers handler for the case when the promise is cencelled. If the promise already cancelled the
         /// handler will be invoked immediatelly.
         /// </summary>