question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to continue after failure

See original GitHub issue

Async APIs calls to their callback function as soon as there’s a failure. I propose to add an option to do just the oposite: if there’s an error, continue with the other tasks until they finish, and only in that moment call to the callback with the error (or errors). This can be useful for example with parallel to finish all the tasks instead of left some of them unfinished.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
aearlycommented, Oct 14, 2016

Have you also seen reflect/reflectAll? They make every async task complete successfully, and wraps the result down to a {error, result} object you can then inspect.

0reactions
aearlycommented, Apr 1, 2017

I think this use case is well-handled by reflect/reflectAll.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why should someone try continue, after failure? - Quora
Failure tells you your weaknesses and by overcoming them you will become strong as well as experienced person in your work. Your dedication...
Read more >
Why Do Some People Succeed after Failing, While Others ...
Evans of the University of Chicago, Wang found that success comes down to learning from one's prior mistakes—for instance, continuing to improve ...
Read more >
10 Healthy Ways to Cope With Failure - Verywell Mind
Once you've identified your mistakes and where you can learn from them, you'll be ready to make a plan for moving forward. Remember...
Read more >
Continue on fail option - IBM
For each item in the test suite, enable (select) or disable (clear) the Continue on Fail option according to how the suite is...
Read more >
How do I Continue After a Failure in SSIS
To answer the question as I asked it, it is possible to continue after failures by making sure that MaximumErrorCount is zero for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found