@@ -133,6 +133,9 namespace Implab.Parallels { | |||
|
133 | 133 | if (threads <= 0) |
|
134 | 134 | throw new ArgumentOutOfRangeException("Threads number must be greater then zero"); |
|
135 | 135 | |
|
136 | if (source.Length == 0) | |
|
137 | return Promise<TDst[]>.ResultToPromise(new TDst[0]); | |
|
138 | ||
|
136 | 139 | var promise = new Promise<TDst[]>(); |
|
137 | 140 | var res = new TDst[source.Length]; |
|
138 | 141 | var pending = source.Length; |
General Comments 0
You need to be logged in to leave comments.
Login now