Closed modjke closed 9 years ago
Consider the following scenario (usable when implementing remote service calls)
function request():Promise<String> { var def = new Deferred<String>(); def.resolve("response"); return def.promise(); }
Now you want to make more than one request at once
Promise.when(request(), request()).then(function (r1, r2) { //both r1 and r2 will be null here });
I've already pinned down an issue with your macro, going to submit a pull-request for that one
Also, Stream.when has exactly the same problem
Pull is up https://github.com/jdonaldson/promhx/pull/62
Consider the following scenario (usable when implementing remote service calls)
Now you want to make more than one request at once
I've already pinned down an issue with your macro, going to submit a pull-request for that one