Skip to content

Instantly share code, notes, and snippets.

@sbellware
Created December 20, 2018 23:03
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 sbellware/bffdb42688a1d38785a803bc759e6a39 to your computer and use it in GitHub Desktop.
Save sbellware/bffdb42688a1d38785a803bc759e6a39 to your computer and use it in GitHub Desktop.
handle SomeMessage do |some_message|
post_data = PostData.build(some_message)
Retry.(HTTPError, millisecond_intervals: [100, 200]) do
SomeHttpAPI.post(post_data)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment