Skip to content
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

Don't rescue Failures from other contexts #192

Merged

Conversation

jqr
Copy link
Contributor

@jqr jqr commented Dec 3, 2020

I believe this resolves #170, or at least the portion of it we're running into.

This change modifies the rescue in run to only apply to Failures which share the exact same context object. This should allow nesting of a.run { b.run! } without a consuming b's Failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants