@nlozgachev/pipelined 0.66.0 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -216,6 +216,7 @@ declare const RetryPolicy: {
216
216
  * Creates a RetryPolicy with exponential backoff delays between attempts.
217
217
  * An optional `factor` (default 2) controls the growth rate.
218
218
  * An optional `jitter` (default false) adds randomized variance to prevent thundering herd problems.
219
+ * An optional `maxDelay` caps the maximum duration between retry attempts.
219
220
  *
220
221
  * @example
221
222
  * ```ts
@@ -224,6 +225,7 @@ declare const RetryPolicy: {
224
225
  * initial: Duration.milliseconds(100),
225
226
  * factor: 2,
226
227
  * jitter: true,
228
+ * maxDelay: Duration.seconds(5),
227
229
  * });
228
230
  * ```
229
231
  */
@@ -232,6 +234,7 @@ declare const RetryPolicy: {
232
234
  initial: Duration;
233
235
  factor?: number;
234
236
  jitter?: boolean;
237
+ maxDelay?: Duration;
235
238
  }) => RetryPolicy;
236
239
  };
237
240
  //#endregion
@@ -216,6 +216,7 @@ declare const RetryPolicy: {
216
216
  * Creates a RetryPolicy with exponential backoff delays between attempts.
217
217
  * An optional `factor` (default 2) controls the growth rate.
218
218
  * An optional `jitter` (default false) adds randomized variance to prevent thundering herd problems.
219
+ * An optional `maxDelay` caps the maximum duration between retry attempts.
219
220
  *
220
221
  * @example
221
222
  * ```ts
@@ -224,6 +225,7 @@ declare const RetryPolicy: {
224
225
  * initial: Duration.milliseconds(100),
225
226
  * factor: 2,
226
227
  * jitter: true,
228
+ * maxDelay: Duration.seconds(5),
227
229
  * });
228
230
  * ```
229
231
  */
@@ -232,6 +234,7 @@ declare const RetryPolicy: {
232
234
  initial: Duration;
233
235
  factor?: number;
234
236
  jitter?: boolean;
237
+ maxDelay?: Duration;
235
238
  }) => RetryPolicy;
236
239
  };
237
240
  //#endregion