Module: SafeCall
- Defined in:
- lib/safe_call.rb
Instance Method Summary collapse
Instance Method Details
#safe_call ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/safe_call.rb', line 3 def safe_call begin yield rescue Errno::ECONNRESET i ||= 0 i += 1 retry if i < 3 end end |