Skip to content

Comments

Use resourceToFinalIO to run the Resource effect#2535

Merged
mdimjasevic merged 1 commit intodevelopfrom
pcapriotti/resource-exceptions
Jul 15, 2022
Merged

Use resourceToFinalIO to run the Resource effect#2535
mdimjasevic merged 1 commit intodevelopfrom
pcapriotti/resource-exceptions

Conversation

@pcapriotti
Copy link
Contributor

This makes sure that any IO exception thrown within the bracket results in the finaliser being called.

No CHANGELOG entry.

Checklist

  • The PR Title explains the impact of the change.
  • The PR description provides context as to why the change should occur and what the code contributes to that effect. This could also be a link to a JIRA ticket or a Github issue, if there is one.

@pcapriotti pcapriotti temporarily deployed to cachix July 5, 2022 09:09 Inactive
@pcapriotti pcapriotti force-pushed the pcapriotti/resource-exceptions branch 2 times, most recently from c6262ba to a24165d Compare July 5, 2022 11:42
@pcapriotti pcapriotti temporarily deployed to cachix July 5, 2022 11:42 Inactive
This makes sure that any IO exception thrown within the bracket
results in the finaliser being called.
@pcapriotti pcapriotti force-pushed the pcapriotti/resource-exceptions branch from a24165d to 25bec44 Compare July 5, 2022 12:36
@pcapriotti pcapriotti temporarily deployed to cachix July 5, 2022 12:36 Inactive
@mdimjasevic mdimjasevic merged commit 5e91e50 into develop Jul 15, 2022
@mdimjasevic mdimjasevic deleted the pcapriotti/resource-exceptions branch July 15, 2022 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants