devel/rubygem-retryable 3.0.5 DragonFly
Allow for retrying of code blocks
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, rubygems
- Package size
- 10.4 KiB, 34.7 KiB installed
Description
Retryable uns a code block, and retries it when an exception occurs. It's great when working with flakey webservices (for example).
It's configured using four optional parameters :tries, :on, :sleep, :matching, :ensure, :exception_cb and runs the passed block. Should an exception occur, it'll retry for (n-1) times.
Should the number of retries be reached without success, the last exception will be raised.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/rubygem-retryable | 3.0.5 |
| FreeBSD | devel/rubygem-retryable | 3.0.5 |
| MidnightBSD | devel/rubygem-retryable | 3.0.5 |
Install
Binary package:
pkg install rubygem-retryable
From DPorts:
cd /usr/dports/devel/rubygem-retryable && make install clean