memdevs/attempt

一个基于 igorw/retry 灵感的小型库,用于尝试执行操作并优雅地重试

0.1 2017-07-17 11:42 UTC

This package is auto-updated.

Last update: 2024-09-24 06:06:18 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.