##// END OF EJS Templates
refactoring
refactoring

File last commit:

r149:eb793fbbe4ea v2
r177:a0ff6a0e9c44 ref20160224
Show More
PromiseHelper.cs
14 lines | 403 B | text/x-csharp | CSharpLexer
cin
refactoring
r11 using Implab.Parallels;
cin
implemeted new cancellable promises concept
r10 using System.Threading;
namespace Implab.Test {
cin
ported tests to mono
r77 static class PromiseHelper {
cin
fixed tests
r73 public static IPromise<T> Sleep<T>(int timeout, T retVal) {
cin
fixed promises cancellation
r149 return AsyncPool.Invoke((ct) => {
ct.CancellationRequested(ct.CancelOperation);
cin
implemeted new cancellable promises concept
r10 Thread.Sleep(timeout);
return retVal;
});
}
}
}