comparison Implab.Test/PromiseHelper.cs @ 73:3b8393be3441 v2

fixed tests
author cin
date Fri, 05 Sep 2014 00:27:14 +0400
parents 6ec82bf68c8e
children 91362ffbecf8
comparison
equal deleted inserted replaced
72:d67b95eddaf4 73:3b8393be3441
5 using System.Text; 5 using System.Text;
6 using System.Threading; 6 using System.Threading;
7 7
8 namespace Implab.Test { 8 namespace Implab.Test {
9 class PromiseHelper { 9 class PromiseHelper {
10 public static Promise<T> Sleep<T>(int timeout, T retVal) { 10 public static IPromise<T> Sleep<T>(int timeout, T retVal) {
11 return AsyncPool.Invoke(() => { 11 return AsyncPool.Invoke(() => {
12 Thread.Sleep(timeout); 12 Thread.Sleep(timeout);
13 return retVal; 13 return retVal;
14 }); 14 });
15 } 15 }