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