Skip to content

Introducing throwOnError option for comprehensive promise chain results #70

@fr1sk

Description

@fr1sk

I think this package is missing an important functionality, and that is to see the results of resolved promises when one of the promises from the promise chain gets rejected. When stopOnError is set to false if some of the promises are rejected, I am not able to get fulfilled results, instead, the error is thrown.

It would be good to have similar behavior like Promise.allSettled to see the results of the promises and their status. EG if resolved, we can see the resolved result and if rejected we can see the error.

Maybe we can have an additional option, throwOnError which will be true by default to not break the functionality, but have the ability to have the functionality explained above.

I am happy to open a PR if you would like to include this functionality in your package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions