Mercurial > pub > ImplabNet
diff Implab/SyncContextPromise.cs @ 156:97fbbf816844 v2
Promises: SignalXXX methods merged into SignalHandler method.
Components: RunnableComponent In progress
author | cin |
---|---|
date | Mon, 15 Feb 2016 04:22:15 +0300 |
parents | 706fccb85524 |
children | 3eb3255d8cc5 |
line wrap: on
line diff
--- a/Implab/SyncContextPromise.cs Fri Feb 12 16:24:24 2016 +0300 +++ b/Implab/SyncContextPromise.cs Mon Feb 15 04:22:15 2016 +0300 @@ -10,16 +10,8 @@ m_context = context; } - protected override void SignalSuccess(Promise<T>.HandlerDescriptor handler) { - m_context.Post(x => base.SignalSuccess(handler), null); - } - - protected override void SignalError(Promise<T>.HandlerDescriptor handler, Exception error) { - m_context.Post(x => base.SignalError(handler, error), null); - } - - protected override void SignalCancelled(Promise<T>.HandlerDescriptor handler, Exception reason) { - m_context.Post(x => base.SignalCancelled(handler, reason), null); + protected override void SignalHandler(HandlerDescriptor handler, int signal) { + m_context.Post(x => base.SignalHandler(handler, signal), null); } } }