Registry / utility / retryable

retryable

JSON →
library3.0.5rbrubygemsunverified

Provides a simple DSL to retry code blocks in Ruby with configurable attempts, sleep, and exception handling.

gem install retryable
INSTALL
IMPORT
SIG · RETRYABLE
R
retryable
utilityrubyv3.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Retryable
require 'retryable'

Retry a network request up to 3 times on timeout errors.

require 'retryable' Retryable.retryable(tries: 3, on: [Net::OpenTimeout]) do Net::HTTP.get_response(URI('http://example.com')) end
Debug
Known issues
breakingVersion 3.0 changed the API from class methods to module methods; old code using 'retryable' directly may break.
fix
Use 'Retryable.retryable' instead of the top-level 'retryable' method, or include the module.
affects: >= 3.0.0
Upgrade
Version history
3.0.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
retryable — gem install retryable · libregistry