0.1.5 • Published 6 years ago

gcp-api-backoff v0.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

gcp-api-backoff

Google Cloud Platform API backoff

No dependencies back-off for the Google Cloud Platform

Installation

npm install gsp-api-backoff

Usage

let backoff = gcpApiBackoff({
    isCanRecover: isCanRecover,
    onCannotRecover: onCannotRecover,
    onRetry: onRetry,
    onMaxRetriesReached: onMaxRetriesReached,
    maxRetries: 3,
    baseWaitTime: 500 
}).backoff;

Tests

None yet

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.