aboutsummaryrefslogtreecommitdiffstats
path: root/devel/rubygem-retryable/pkg-descr
blob: 01b28691f153949eaa6611388230be0c2f8b1b40 (plain) (blame)
1
2
3
4
5
6
7
8
9
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.