##// END OF EJS Templates
improved tracing...
improved tracing added text listeners (file,console)

File last commit:

r11:6ec82bf68c8e promises
r40:fe33f4e02ad5 default
Show More
PromiseHelper.cs
17 lines | 420 B | text/x-csharp | CSharpLexer
cin
refactoring
r11 using Implab.Parallels;
using System;
cin
implemeted new cancellable promises concept
r10 using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Implab.Test {
class PromiseHelper {
public static Promise<T> Sleep<T>(int timeout, T retVal) {
return AsyncPool.Invoke(() => {
Thread.Sleep(timeout);
return retVal;
});
}
}
}