dry-rb / dry-effects

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

Lock effect #31

Closed flash-gordon closed 5 years ago

flash-gordon commented 5 years ago

Lock effect with replaceable backend. The API is not set yet but I'll give it a try soon. The idea is that provider will release all locks on exit, this makes lock management simple, you'll only need one top-level handler in the simplest case.