dry-rb / dry-effects

Algebraic effects in Ruby
https://dry-rb.org/gems/dry-effects/
MIT License
112 stars 20 forks source link

Change the Interrupt API #58

Closed flash-gordon closed 5 years ago

flash-gordon commented 5 years ago

Return whether there was an interruption. It's kind of logical you want to know if the inner block succeeded. It's always achievable with adding supplementary variables, but it looked as some cumbersome C-style to me. I stumbled upon this again when I tried to explain the effect in docs.