Mercurial > pub > ImplabNet
comparison Implab/IDeferred.cs @ 145:706fccb85524 v2
RC: cancellation support for promises + tests
| author | cin |
|---|---|
| date | Sun, 08 Mar 2015 02:52:27 +0300 |
| parents | 16f926ee499d |
| children | fa6cbf4d8841 |
comparison
equal
deleted
inserted
replaced
| 144:8c0b95069066 | 145:706fccb85524 |
|---|---|
| 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 : ICancelationToken { | 7 public interface IDeferred : ICancellationToken { |
| 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. |
