##// END OF EJS Templates
close v2-1...
close v2-1 bad idea

File last commit:

r211:3eb3255d8cc5 v2
r241:c19cee55e85e v2-1
Show More
SyncContextPromise.cs
22 lines | 687 B | text/x-csharp | CSharpLexer
/ Implab / SyncContextPromise.cs
cin
promises refactoring
r72 using System.Threading;
namespace Implab {
public class SyncContextPromise<T> : Promise<T> {
readonly SynchronizationContext m_context;
public SyncContextPromise(SynchronizationContext context) {
Safe.ArgumentNotNull(context, "context");
m_context = context;
}
cin
code cleanup...
r101 public SyncContextPromise(SynchronizationContext context, IPromise parent)
: base(parent) {
cin
promises refactoring
r72 Safe.ArgumentNotNull(context, "context");
m_context = context;
}
cin
promises refactoring
r106 protected override void InvokeHandler(AbstractHandler handler) {
cin
promises refactoring
r72 m_context.Post(x => base.InvokeHandler(handler),null);
}
}
}