memdevs/attempt

A small library for attempting operations with graceful retries, based on an idea by igorw/retry

0.1 2017-07-17 11:42 UTC

This package is auto-updated.

Last update: 2024-04-24 05:06:40 UTC


README

This package will attempt to execute a function (closure or callable) until a set number of attempts have been made.

It will intercept exceptions (and store them for reporting) and enables you to have significant control over how the function is handled during error conditions.

It's great for access to remote URLs or databases where you risk experiencing failures.

Note, it relies on exceptions to detect "failure" which will cause another attempt.

For further information, please see the "examples" folder.

More info will come later.