Mercurial > pub > ImplabNet
view Implab.Test/PromiseHelper.cs @ 51:2c332a9c64c0
Added methods for parameter checks
author | cin |
---|---|
date | Sat, 26 Apr 2014 23:36:00 +0400 |
parents | 6ec82bf68c8e |
children | 3b8393be3441 |
line wrap: on
line source
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 Promise<T> Sleep<T>(int timeout, T retVal) { return AsyncPool.Invoke(() => { Thread.Sleep(timeout); return retVal; }); } } }