diff Implab/AbstractPromiseT.cs @ 242:cbe10ac0731e v3

Working on promises
author cin
date Wed, 24 Jan 2018 03:03:21 +0300
parents 86187b01c4e0
children
line wrap: on
line diff
--- a/Implab/AbstractPromiseT.cs	Tue Jan 23 19:39:21 2018 +0300
+++ b/Implab/AbstractPromiseT.cs	Wed Jan 24 03:03:21 2018 +0300
@@ -84,7 +84,7 @@
             }
         }
 
-        public Type PromiseType {
+        public Type ResultType {
             get {
                 return typeof(T);
             }
@@ -167,7 +167,7 @@
 
         #region implemented abstract members of AbstractPromise
 
-        protected override Signal GetResolveSignal() {
+        protected override Signal GetFulfillSignal() {
             var signal = new Signal();
             AddHandler(new HandlerDescriptor(signal.Set, PromiseEventType.All));
             return signal;
@@ -179,7 +179,7 @@
                     handler.SignalSuccess(m_result);
                     break;
                 case REJECTED_STATE:
-                    handler.SignalError(Error);
+                    handler.SignalError(RejectReason);
                     break;
                 case CANCELLED_STATE:
                     handler.SignalCancel(CancellationReason);