##// END OF EJS Templates
Bound promise to CancellationToken...
Bound promise to CancellationToken Added new states to ExecutionSate enum. Added Safe.Guard() method to handle cleanup of the result of the promise

File last commit:

r201:d7cd7a83189a v2
r209:a867536c68fc 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 }
}