Skip to content

Commit

Permalink
Merge pull request #379 from saloonphp/feature/deprecate-send-and-ret…
Browse files Browse the repository at this point in the history
…ry-method

Feature | Deprecate Send And Retry Method
  • Loading branch information
Sammyjo20 authored Feb 25, 2024
2 parents 32f1f76 + 5712e5b commit e74c30a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Traits/Connector/SendsRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ public function sendAsync(Request $request, MockClient $mockClient = null): Prom
/**
* Send a synchronous request and retry if it fails
*
* @deprecated This method will be removed in Saloon v4. Please refer to the documentation to see connector or request-based retry functionality.
*
* @param callable(\Throwable, \Saloon\Http\Request): (bool)|null $handleRetry
*/
public function sendAndRetry(Request $request, int $tries, int $interval = 0, callable $handleRetry = null, bool $throw = true, MockClient $mockClient = null, bool $useExponentialBackoff = false): Response
Expand Down

0 comments on commit e74c30a

Please sign in to comment.