Mercurial > pub > ImplabNet
view Implab.Test/PromiseHelper.cs @ 146:e03ccec4a08d v2
minor changes
author | cin |
---|---|
date | Mon, 09 Mar 2015 17:21:20 +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; }); } } }