diff Implab/IDeferred.cs @ 119:2573b562e328 v2

Promises rewritten, added improved version of AsyncQueue
author cin
date Sun, 11 Jan 2015 19:13:02 +0300
parents
children f75cfa58e3d4
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Implab/IDeferred.cs	Sun Jan 11 19:13:02 2015 +0300
@@ -0,0 +1,14 @@
+using System;
+
+namespace Implab {
+    /// <summary>
+    /// Deferred result, usually used by asynchronous services as the service part of the promise.
+    /// </summary>
+    public interface IDeferred : ICancellable {
+
+        void Resolve();
+
+        void Reject(Exception error);
+    }
+}
+