##// END OF EJS Templates
fixed: StackOverflow in IPromiseBase.Then(handler)...
cin -
r32:8eca2652d2ff default
parent child
Show More
@@ -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;
@@ -236,7 +236,7 namespace Implab {
236
236
237 public IPromiseBase Then(Action success)
237 public IPromiseBase Then(Action success)
238 {
238 {
239 return Then(success);
239 return Then(x => success());
240 }
240 }
241
241
242 /// <summary>
242 /// <summary>
General Comments 0
You need to be logged in to leave comments. Login now