diff Implab/IDeferredT.cs @ 240:fa6cbf4d8841 v3

refactoring, moving to dotnercore, simplifying promises
author cin
date Tue, 23 Jan 2018 19:39:21 +0300
parents 706fccb85524
children
line wrap: on
line diff
--- a/Implab/IDeferredT.cs	Wed Dec 13 19:54:45 2017 +0300
+++ b/Implab/IDeferredT.cs	Tue Jan 23 19:39:21 2018 +0300
@@ -1,10 +1,12 @@
 using System;
 
 namespace Implab {
-    public interface IDeferred<in T> : ICancellationToken {
+    public interface IDeferred<in T> {
         void Resolve(T value);
 
         void Reject(Exception error);
+
+        void SetCancelled(Exception error);
     }
 }