Retry a block of code, once, with recovery options
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
retry_once.gemspec

README.md

retry_once

It retries a block of code, but only once... you can try and recover with a custom proc/lambda/whatevery.

usage

retry_exception_once_with(SomeRandomError, lambda { doSomething }) do
  puts "This is a try!"
  raise SomeRandomError
end