Closed bradvogel closed 9 years ago
My code uses a loop inside sync.parallel():
sync.parallel()
var responses = sync.await(sync.parallel(function() { myArray.forEach(function(item) { asyncFn(item, sync.defer()); }); }));
I noticed that when myArray is length 0 that sync.await never returns. This seems like a bug. Shouldn't sync.parallel know that sync.defer wasn't called inside of it and just be a noop?
Thanks, yep, looks like a bug, it should know that there was no call.
My code uses a loop inside
sync.parallel()
:I noticed that when myArray is length 0 that sync.await never returns. This seems like a bug. Shouldn't sync.parallel know that sync.defer wasn't called inside of it and just be a noop?