Mercurial > pub > ImplabNet
view Implab/IDeferred.cs @ 208:7d07503621fe v2
RunnableComponent.Dispose(bool,Exception) changed to standart Dispose(bool)
IRunnable is now disposable
Code cleanups, suppressed some CodeAnalysis warnings
author | cin |
---|---|
date | Sun, 13 Nov 2016 18:28:17 +0300 |
parents | 706fccb85524 |
children | fa6cbf4d8841 |
line wrap: on
line source
using System; namespace Implab { /// <summary> /// Deferred result, usually used by asynchronous services as the service part of the promise. /// </summary> public interface IDeferred : ICancellationToken { void Resolve(); /// <summary> /// Reject the promise with the specified error. /// </summary> /// <param name="error">The reason why the promise is rejected.</param> /// <remarks> /// Some exceptions are treated in a special case: /// <see cref="OperationCanceledException"/> is interpreted as call to <see cref="Cancel()"/> method, /// and <see cref="PromiseTransientException"/> is always unwrapped and its /// <see cref="PromiseTransientException.InnerException"> is used as the reason to reject promise. /// </remarks> void Reject(Exception error); } }