Mercurial > pub > ImplabNet
comparison Implab/Parallels/ArrayTraits.cs @ 26:f0bf98e4d22c
refactoring
author | cin |
---|---|
date | Fri, 21 Feb 2014 03:15:28 +0400 |
parents | 9bf5b23650c9 |
children | 2fad2d1f4b03 |
comparison
equal
deleted
inserted
replaced
25:9bf5b23650c9 | 26:f0bf98e4d22c |
---|---|
123 | 123 |
124 var iter = new ArrayIterator<TSrc>(source, action, threads); | 124 var iter = new ArrayIterator<TSrc>(source, action, threads); |
125 return iter.Promise; | 125 return iter.Promise; |
126 } | 126 } |
127 | 127 |
128 public static Promise<TDst[]> ChainedMap<TSrc, TDst>(this TSrc[] source, ChainedOperation<TSrc, TDst> transform, int threads) { | 128 public static IPromise<TDst[]> ChainedMap<TSrc, TDst>(this TSrc[] source, ChainedOperation<TSrc, TDst> transform, int threads) { |
129 if (source == null) | 129 if (source == null) |
130 throw new ArgumentNullException("source"); | 130 throw new ArgumentNullException("source"); |
131 if (transform == null) | 131 if (transform == null) |
132 throw new ArgumentNullException("transform"); | 132 throw new ArgumentNullException("transform"); |
133 if (threads <= 0) | 133 if (threads <= 0) |