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 df7ca5d commit e90d146Copy full SHA for e90d146
src/token_bucket.ts
@@ -18,6 +18,18 @@ export class TokenBucket {
18
}
19
20
21
+/**
22
+ * @internal
23
+ * The amount to deposit on successful operations, as defined in the backpressure specification.
24
+ */
25
export const TOKEN_REFRESH_RATE = 0.1;
-export const INITIAL_SIZE = 1000;
26
27
28
+ * The initial size of the token bucket, as defined in the backpressure specification.
29
30
+export const INITIAL_TOKEN_BUCKET_SIZE = 1000;
31
32
33
+ * The cost of a retry, as defined in the backpressure specification.
34
35
export const RETRY_COST = 1;
0 commit comments