Selleo / pattern

A collection of lightweight, standardized, rails-oriented patterns.
MIT License
708 stars 39 forks source link

Services shouls allow passing a block #39

Open akostadinov opened 1 year ago

akostadinov commented 1 year ago

Hello, would be useful to allow services to accept a block

service = Synchronization::NowaitLockService.call("my_lock_key", timeout: 25000) { sleep 10 }

Presently block passed is ignored.