We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf23087 commit e3c655bCopy full SHA for e3c655b
docs/content/docs/foundations/errors-and-retries.mdx
@@ -108,7 +108,7 @@ async function callApi(endpoint: string) {
108
const response = await fetch(endpoint);
109
110
if (response.status >= 500) {
111
- // Exponential backoffs (in milliseconds)
+ // Exponential backoffs
112
throw new RetryableError("Backing off...", {
113
retryAfter: (metadata.attempt ** 2) * 1000, // [!code highlight]
114
});
0 commit comments