Skip to content

Instantly share code, notes, and snippets.

@kirillshevch
Created June 14, 2020 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirillshevch/37bb3d394533cf3a162454490371e45d to your computer and use it in GitHub Desktop.
Save kirillshevch/37bb3d394533cf3a162454490371e45d to your computer and use it in GitHub Desktop.
require 'retriable'
class Api
# Use it in methods that interact with unreliable services
def get
Retriable.retriable do
# code here...
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment