##// END OF EJS Templates
major refactoring, added tasks support
major refactoring, added tasks support

File last commit:

r73:3b8393be3441 v2
r75:4439140706d0 v2
Show More
PromiseHelper.cs
17 lines | 421 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 {
cin
fixed tests
r73 public static IPromise<T> Sleep<T>(int timeout, T retVal) {
cin
implemeted new cancellable promises concept
r10 return AsyncPool.Invoke(() => {
Thread.Sleep(timeout);
return retVal;
});
}
}
}