##// END OF EJS Templates
RC: cancellation support for promises + tests
RC: cancellation support for promises + tests

File last commit:

r145:706fccb85524 v2
r145:706fccb85524 v2
Show More
Program.cs
40 lines | 918 B | text/x-csharp | CSharpLexer
cin
improved tracing...
r93 using System;
using Implab.Diagnostics;
using Implab.Parallels;
using Implab;
cin
sync
r103 using System.Collections.Generic;
using System.Collections.Concurrent;
cin
shared locks + tests
r136 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
minor fixes
r94 if (args == null)
throw new ArgumentNullException("args");
cin
sync
r103 var t1 = Environment.TickCount;
cin
improved tracing...
r93
cin
RC: cancellation support for promises + tests
r145 for (int i = 0; i < 10000000; i++) {
var p = new Promise<int>();
p.On(HandleResult);
p.Resolve(i);
}
cin
working version of AsyncQueue and batch operations...
r121
cin
sync
r103 var t2 = Environment.TickCount;
cin
improved performance of promises
r125 Console.WriteLine("done: {0} ms, {1:.00} Mb, {2} GC", t2 - t1, GC.GetTotalMemory(false) / (1024*1024), GC.CollectionCount(0) );
cin
improved tracing...
r93
}
cin
shared locks + tests
r136
cin
RC: cancellation support for promises + tests
r145 static void HandleAction ()
{
}
cin
shared locks + tests
r136
cin
RC: cancellation support for promises + tests
r145 static void HandleResult(int x) {
}
cin
improved tracing...
r93 }
}