comparison Implab/AbstractPromise.cs @ 143:16f926ee499d v2

DRAFT: refactoring, adding cancelation token
author cin
date Wed, 04 Mar 2015 18:05:39 +0300
parents f75cfa58e3d4
children 8c0b95069066
comparison
equal deleted inserted replaced
142:2100965eb97f 143:16f926ee499d
284 } 284 }
285 } 285 }
286 286
287 #endregion 287 #endregion
288 288
289 #region ICancellable implementation
290
291 public void Cancel() {
292 SetCancelled(null);
293 }
294
295 public void Cancel(Exception reason) {
296 SetCancelled(reason);
297 }
298
299 #endregion
300
301 public Exception Error { 289 public Exception Error {
302 get { 290 get {
303 return m_error; 291 return m_error;
304 } 292 }
305 } 293 }