Mercurial > pub > ImplabNet
comparison Implab/SuccessPromiseT.cs @ 242:cbe10ac0731e v3
Working on promises
author | cin |
---|---|
date | Wed, 24 Jan 2018 03:03:21 +0300 |
parents | 4d9830a9bbb8 |
children |
comparison
equal
deleted
inserted
replaced
240:fa6cbf4d8841 | 242:cbe10ac0731e |
---|---|
117 } | 117 } |
118 | 118 |
119 void IPromise.Join(int timeout) { | 119 void IPromise.Join(int timeout) { |
120 } | 120 } |
121 | 121 |
122 public Type PromiseType { | 122 public Type ResultType { |
123 get { | 123 get { |
124 return typeof(T); | 124 return typeof(T); |
125 } | 125 } |
126 } | 126 } |
127 | 127 |
128 public bool IsResolved { | 128 public bool IsFulfilled { |
129 get { | 129 get { |
130 return true; | 130 return true; |
131 } | 131 } |
132 } | 132 } |
133 | 133 |
135 get { | 135 get { |
136 return false; | 136 return false; |
137 } | 137 } |
138 } | 138 } |
139 | 139 |
140 public Exception Error { | 140 public Exception RejectReason { |
141 get { | 141 get { |
142 return null; | 142 return null; |
143 } | 143 } |
144 } | 144 } |
145 | 145 |