3 ms·
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 th
by simonw 17y ago
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.