Method: Lockfile#attempt
- Defined in:
- lib/rq/lockfile.rb
#attempt ⇒ Object
–}}}
536 537 538 539 540 541 542 |
# File 'lib/rq/lockfile.rb', line 536 def attempt #----{{{ ret = nil loop{ break unless catch('attempt'){ ret = yield } == 'try_again' } ret #----}}} end |