diff Implab/FailedPromise.cs @ 242:cbe10ac0731e v3

Working on promises
author cin
date Wed, 24 Jan 2018 03:03:21 +0300
parents 4d9830a9bbb8
children
line wrap: on
line diff
--- a/Implab/FailedPromise.cs	Tue Jan 23 19:39:21 2018 +0300
+++ b/Implab/FailedPromise.cs	Wed Jan 24 03:03:21 2018 +0300
@@ -53,20 +53,20 @@
         }
 
         public void Join() {
-            throw new TargetInvocationException(Error);
+            throw new TargetInvocationException(RejectReason);
         }
 
         public void Join(int timeout) {
-            throw new TargetInvocationException(Error);
+            throw new TargetInvocationException(RejectReason);
         }
 
-        public virtual Type PromiseType {
+        public virtual Type ResultType {
             get {
                 return typeof(void);
             }
         }
 
-        public bool IsResolved {
+        public bool IsFulfilled {
             get {
                 return true;
             }
@@ -78,7 +78,7 @@
             }
         }
 
-        public Exception Error {
+        public Exception RejectReason {
             get {
                 return m_error;
             }