Mercurial > pub > ImplabNet
view Implab.Test/PromiseHelper.cs @ 142:2100965eb97f v2
fixed JSONWriter handling Infinity, NaN and locale aware number formatting
author | cin |
---|---|
date | Wed, 04 Mar 2015 03:10:38 +0300 |
parents | 91362ffbecf8 |
children | eb793fbbe4ea |
line wrap: on
line source
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; }); } } }