| Total Complexity | 6 | 
| Total Lines | 36 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 19 | final class RetryOnExceptionMiddlewareAsync implements AsyncLoopMiddlewareInterface | ||
| 20 | { | ||
| 21 | private AsyncLoopMiddlewareInterface $chain; | ||
| 22 | /** @var array<int, class-string<Exception>> */ | ||
| 23 | private array $exception_names; | ||
| 24 | private int $max_retry; | ||
| 25 | private int $current_retry_count = 0; | ||
| 26 | |||
| 27 | /** | ||
| 28 | * RetryOnExceptionLoop constructor. | ||
| 29 | * @param int $max_retry | ||
| 30 | * @param array<int, class-string<Exception>> $exception_names | ||
| 31 | * @param AsyncLoopMiddlewareInterface $chain | ||
| 32 | */ | ||
| 33 | public function __construct(int $max_retry, array $exception_names, AsyncLoopMiddlewareInterface $chain) | ||
| 38 | } | ||
| 39 | |||
| 40 | public function invoke(): \Generator | ||
| 57 |