##// 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
using Implab.Parallels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Implab.Test {
class PromiseHelper {
public static IPromise<T> Sleep<T>(int timeout, T retVal) {
return AsyncPool.Invoke(() => {
Thread.Sleep(timeout);
return retVal;
});
}
}
}