Mercurial > pub > ImplabNet
diff Implab/SyncContextPromise.cs @ 145:706fccb85524 v2
RC: cancellation support for promises + tests
author | cin |
---|---|
date | Sun, 08 Mar 2015 02:52:27 +0300 |
parents | f75cfa58e3d4 |
children | 97fbbf816844 |
line wrap: on
line diff
--- a/Implab/SyncContextPromise.cs Fri Mar 06 15:45:26 2015 +0300 +++ b/Implab/SyncContextPromise.cs Sun Mar 08 02:52:27 2015 +0300 @@ -10,15 +10,15 @@ m_context = context; } - protected override void SignalSuccess(IDeferred<T> handler) { + protected override void SignalSuccess(Promise<T>.HandlerDescriptor handler) { m_context.Post(x => base.SignalSuccess(handler), null); } - protected override void SignalError(IDeferred<T> handler, Exception error) { + protected override void SignalError(Promise<T>.HandlerDescriptor handler, Exception error) { m_context.Post(x => base.SignalError(handler, error), null); } - protected override void SignalCancelled(IDeferred<T> handler, Exception reason) { + protected override void SignalCancelled(Promise<T>.HandlerDescriptor handler, Exception reason) { m_context.Post(x => base.SignalCancelled(handler, reason), null); } }