Re:JavaScript: It’s Not Just for Browsers Any More
by simonw on Saturday March 06, 2010 @09:25AM
(#1171562)
It depends on the promise library implementation - most will let you specify an "errback" (like a callback, but called if there is an error) and will trigger that if any of their children fail. Alternatively, some may let you specify a timeout and call your errback if that time elapses without all of the children finishing.
I don't event have a kid! ;-)
Thank you, that was the thing I was looking for. My question now: What happens if one of the promises fails? Is a promise group disposed then? Solution offered by Periodic would wait forever.