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

DRAFT: refactoring, adding cancelation token
author cin
date Wed, 04 Mar 2015 18:05:39 +0300
parents f75cfa58e3d4
children 706fccb85524
comparison
equal deleted inserted replaced
142:2100965eb97f 143:16f926ee499d
2 2
3 namespace Implab { 3 namespace Implab {
4 /// <summary> 4 /// <summary>
5 /// Deferred result, usually used by asynchronous services as the service part of the promise. 5 /// Deferred result, usually used by asynchronous services as the service part of the promise.
6 /// </summary> 6 /// </summary>
7 public interface IDeferred : ICancellable { 7 public interface IDeferred : ICancelationToken {
8 8
9 void Resolve(); 9 void Resolve();
10 10
11 /// <summary> 11 /// <summary>
12 /// Reject the promise with the specified error. 12 /// Reject the promise with the specified error.