collectiveidea / interactor

Interactor provides a common interface for performing complex user interactions.
MIT License
3.36k stars 212 forks source link

Don't rescue Failures from other contexts #192

Closed jqr closed 2 years ago

jqr commented 3 years ago

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.