diff Implab/TaskController.cs @ 76:c761fc982e1d v2

Refactoring of the IPromise<T> interface Added tests
author cin
date Wed, 10 Sep 2014 17:53:05 +0400
parents 9bf5b23650c9
children f75cfa58e3d4
line wrap: on
line diff
--- a/Implab/TaskController.cs	Wed Sep 10 11:17:37 2014 +0400
+++ b/Implab/TaskController.cs	Wed Sep 10 17:53:05 2014 +0400
@@ -92,14 +92,10 @@
             }
         }
 
-        public bool Cancel() {
+        public void Cancel() {
             lock (m_lock) {
-                if (!m_cancelled) {
+                if (!m_cancelled)
                     m_cancelled = true;
-                    return true;
-                } else {
-                    return false;
-                }
             }
         }