##// END OF EJS Templates
README.md edited online with Bitbucket
README.md edited online with Bitbucket

File last commit:

r249:d82909310094 v3
r282:12b89f1cfe9f default
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;
});
}
}
}