##// END OF EJS Templates
added Safe.DispatchEvent() a legacy equivalent for '?.Invoke()'...
added Safe.DispatchEvent() a legacy equivalent for '?.Invoke()' added Safe.Dispose(IEnumerable) added PromiseExtensions.CancellationPoint to add a cancellation point to the chain of promises added IPromise<T> PromiseExtensions.Then<T>(this IPromise<T> that, Action<T> success) overloads added PromiseExtensions.Error() overloads to handle a error or(and) a cancellation

File last commit:

r201:d7cd7a83189a v2
r207:558f34b2fb50 v2
Show More
Program.cs
45 lines | 1.2 KiB | text/x-csharp | CSharpLexer
cin
TraceLog tests
r201 using Implab;
cin
working on diagnostics
r194 using Implab.Parallels;
cin
TraceLog tests
r201 using Implab.Diagnostics;
cin
working on diagnostics
r194 using System.Threading;
cin
improved tracing...
r93
namespace MonoPlay {
class MainClass {
cin
RC: cancellation support for promises + tests
r145
cin
improved tracing...
r93 public static void Main(string[] args) {
cin
working on diagnostics
r194 var pool = new WorkerPool(10);
cin
JSONWriter improvements
r150
cin
working on diagnostics
r194 var listerner = new ConsoleTraceListener();
cin
TraceLog tests
r201 listerner.Subscribe<TraceEvent>();
cin
working on diagnostics
r194
cin
TraceLog tests
r201 TraceLog.StartLogicalOperation("Main");
cin
improved tracing...
r93
cin
working on diagnostics
r194 var d = pool.Invoke(() => {
cin
TraceLog tests
r201 TraceLog.StartLogicalOperation("Worker");
cin
working on diagnostics
r194 Thread.Sleep(100);
cin
TraceLog tests
r201 TraceLog.TraceInformation("worker done");
TraceLog.EndLogicalOperation();
cin
working on diagnostics
r194 });
cin
shared locks + tests
r136
cin
TraceLog tests
r201 var op = TraceContext.Instance.CurrentOperation;
cin
working on diagnostics
r194 ThreadPool.QueueUserWorkItem((o) => {
cin
TraceLog tests
r201 TraceContext.Instance.EnterLogicalOperation(op, false);
TraceLog.StartLogicalOperation("Thread");
cin
working on diagnostics
r194 Thread.Sleep(100);
cin
TraceLog tests
r201 TraceLog.TraceInformation("thread done");
TraceLog.EndLogicalOperation();
cin
working on diagnostics
r194 });
cin
JSONWriter improvements
r150
cin
TraceLog tests
r201 TraceLog.TraceInformation("main done");
TraceLog.EndLogicalOperation();
cin
working on diagnostics
r194
d.Join();
cin
fixed DFA optimization, JSON is fully functional
r183
cin
RC: cancellation support for promises + tests
r145 }
cin
shared locks + tests
r136
cin
improved tracing...
r93 }
}