comparison Implab/Promise.cs @ 32:8eca2652d2ff

fixed: StackOverflow in IPromiseBase.Then(handler) fixed: hang in ChainMap method on empty arrays
author cin
date Tue, 08 Apr 2014 23:25:01 +0400
parents 2fad2d1f4b03
children b255e4aeef17
comparison
equal deleted inserted replaced
31:dafaadca5b9f 32:8eca2652d2ff
234 return Then(x => success(), error); 234 return Then(x => success(), error);
235 } 235 }
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>
243 /// Adds new handlers to this promise. 243 /// Adds new handlers to this promise.
244 /// </summary> 244 /// </summary>