Mercurial > pub > ImplabNet
comparison Implab.Test/AsyncTests.cs @ 30:2fad2d1f4b03
small refactoring, cleanup.
author | cin |
---|---|
date | Mon, 07 Apr 2014 03:25:57 +0400 |
parents | ee04e1fa78da |
children | b255e4aeef17 |
comparison
equal
deleted
inserted
replaced
29:768f7deeb55b | 30:2fad2d1f4b03 |
---|---|
253 for (int i = 0; i < count; i++) | 253 for (int i = 0; i < count; i++) |
254 args[i] = rand.NextDouble(); | 254 args[i] = rand.NextDouble(); |
255 | 255 |
256 var t = Environment.TickCount; | 256 var t = Environment.TickCount; |
257 var res = args | 257 var res = args |
258 .ChainedMap2( | 258 .ChainedMap( |
259 x => pool.Invoke( | 259 x => pool.Invoke( |
260 () => Math.Sin(x * x) | 260 () => Math.Sin(x * x) |
261 ), | 261 ), |
262 4 | 262 4 |
263 ) | 263 ) |