Skip to content

Kill fixes #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 24, 2017
Merged

Kill fixes #114

merged 3 commits into from
Aug 24, 2017

Conversation

natefaubion
Copy link
Collaborator

Fixes #110
Fixes #113

This handles bracket/catch behavior with interrupts and finalizers by tagging each enqueued recovery item with the current interrupt status. When we go to evaluate them, we can check to see if the interrupt status has changed, and decide whether we should filter them out, or run the recovery.

@natefaubion
Copy link
Collaborator Author

natefaubion commented Aug 22, 2017

An alternative would have been to rewrite the recovery stack on interrupt, filtering out catch items, and changing the behavior of enqueued bracket conditions. The implemented solution lets us do it "as we go" as part of normal evaluation, so we aren't paying any extra.

@natefaubion natefaubion requested a review from garyb August 23, 2017 02:20
@natefaubion natefaubion merged commit 2f7c5ee into purescript-contrib:master Aug 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants