Skip to content

Instantly share code, notes, and snippets.

@alex-okrushko
Last active October 2, 2018 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex-okrushko/8440f12794a9a75cbca2af2f7474a88a to your computer and use it in GitHub Desktop.
Save alex-okrushko/8440f12794a9a75cbca2af2f7474a88a to your computer and use it in GitHub Desktop.
RetryBackoffConfig used in retryBackoff - exponential backoff retry for pipeable operators
export interface RetryBackoffConfig {
initialInterval: number;
maxRetries?: number;
maxInterval?: number;
shouldRetry?: (error: any) => boolean;
backoffDelay?: (iteration: number, initialInterval: number) => number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment