From 5712e5be4229119b69210f543fcc1773e4a8d08b Mon Sep 17 00:00:00 2001 From: Sammyjo20 <29132017+Sammyjo20@users.noreply.github.com> Date: Sun, 25 Feb 2024 14:09:56 +0000 Subject: [PATCH] Feature | Deprecate Send And Retry Method --- src/Traits/Connector/SendsRequests.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Traits/Connector/SendsRequests.php b/src/Traits/Connector/SendsRequests.php index f667bee7..9c834138 100644 --- a/src/Traits/Connector/SendsRequests.php +++ b/src/Traits/Connector/SendsRequests.php @@ -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