Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

feat: added Effect.orDieTag #593

Closed

Conversation

jessekelly881
Copy link
Contributor

@jessekelly881 jessekelly881 commented Aug 14, 2023

Converts the specified error into a defect and removes it from the error channel. Closes #587

@changeset-bot
Copy link

changeset-bot bot commented Aug 14, 2023

🦋 Changeset detected

Latest commit: 2538465

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@effect/io Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jessekelly881 jessekelly881 force-pushed the feat/Error.orDieTag branch 2 times, most recently from ae508d9 to cc7cb10 Compare August 14, 2023 09:22
@tim-smart
Copy link
Member

Is this the same as:

Effect.catchTag("SomeError", Effect.die)

@jessekelly881
Copy link
Contributor Author

Lol. Good point.

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.

Feature request: throwTag, throwTagWith
2 participants