|
7 | 7 | [![Test coverage][Coverage image]][Coverage] |
8 | 8 | [![Code style][Style image]][Style] |
9 | 9 |
|
10 | | -Retry provides a function to retry failing operations. An operation is deemed to have failed if it throws an exception. |
| 10 | +Retry provides a function to retry failing operations with optional [Fiber][Fibers] support. |
| 11 | +An operation is deemed to have failed if it throws an exception. |
11 | 12 | This library is a rewrite of [Igor Wiedler's retry](https://github.com/igorw/retry) but aims to remain faithful to the |
12 | 13 | spirit of the original. |
13 | 14 |
|
14 | 15 | Requirements |
15 | 16 | ------------ |
16 | 17 |
|
17 | | -- [PHP 5.5](http://php.net/) |
| 18 | +- [PHP 8.1](http://php.net/) |
18 | 19 | - [Composer](https://getcomposer.org/) |
19 | 20 |
|
20 | 21 | Usage |
@@ -49,12 +50,14 @@ $response = retry(5, function () use ($url) { |
49 | 50 | ``` |
50 | 51 |
|
51 | 52 |
|
| 53 | + [Fibers]: https://www.php.net/manual/en/language.fibers.php |
| 54 | + |
52 | 55 | [Releases]: https://github.com/ScriptFUSION/Retry/releases |
53 | 56 | [Version image]: https://poser.pugx.org/scriptfusion/retry/v/stable "Latest version" |
54 | 57 | [Downloads]: https://packagist.org/packages/scriptfusion/retry |
55 | 58 | [Downloads image]: https://poser.pugx.org/scriptfusion/retry/downloads "Total downloads" |
56 | | - [Build]: http://travis-ci.org/ScriptFUSION/Retry |
57 | | - [Build image]: https://travis-ci.org/ScriptFUSION/Retry.svg "Build status" |
| 59 | + [Build]: https://github.com/ScriptFUSION/Retry/actions/workflows/Tests.yaml |
| 60 | + [Build image]: https://github.com/ScriptFUSION/Retry/actions/workflows/Tests.yaml/badge.svg "Build status" |
58 | 61 | [Coverage]: https://coveralls.io/github/ScriptFUSION/Retry |
59 | 62 | [Coverage image]: https://coveralls.io/repos/ScriptFUSION/Retry/badge.svg "Test coverage" |
60 | 63 | [Style]: https://styleci.io/repos/62990558 |
|
0 commit comments