Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Then or catch #16

Merged
merged 2 commits into from
Jul 30, 2022
Merged

Then or catch #16

merged 2 commits into from
Jul 30, 2022

Conversation

garyb
Copy link
Member

@garyb garyb commented Jul 30, 2022

Description of the change

Add thenOrCatch f g p, equivalent to p.then(f, g). Without being able to add both callback and error handler at the same step it's difficult (maybe impossible?) to handle some cases with exactly the desired semantics.


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

@garyb garyb merged commit 12a6657 into master Jul 30, 2022
@garyb garyb deleted the then-or-catch branch July 30, 2022 21:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants