##// END OF EJS Templates
DRAFT: refactoring, adding cancelation token
DRAFT: refactoring, adding cancelation token

File last commit:

r77:91362ffbecf8 v2
r143:16f926ee499d v2
Show More
PromiseHelper.cs
13 lines | 338 B | text/x-csharp | CSharpLexer
using Implab.Parallels;
using System.Threading;
namespace Implab.Test {
static class PromiseHelper {
public static IPromise<T> Sleep<T>(int timeout, T retVal) {
return AsyncPool.Invoke(() => {
Thread.Sleep(timeout);
return retVal;
});
}
}
}