You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can also tweak the number of allowed seconds before an API connection times out or the allowed duration of the entire HTTP request (by default they are both set to 5 seconds):
@@ -361,7 +361,7 @@ If the 3rd party API is faulty or error-prone, we can indicate how many times we
361
361
// repeat failing requests 5 times after a backoff of 1, 2, 3, 4 and 5 seconds
362
362
LazyJsonPages::from($source)
363
363
->attempts(5)
364
-
->backoff(fn(int $attempt) => $attempt * 1000);
364
+
->backoff(fn(int $attempt) => $attempt * 1000);
365
365
```
366
366
367
367
### 💢 Errors handling
@@ -373,7 +373,7 @@ use Psr\Http\Message\RequestInterface;
0 commit comments