Skip to content

No dependencies back-off for the Google Cloud Platform

License

Notifications You must be signed in to change notification settings

duizendstra/gcp-api-backoff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No dependencies back-off for the Google Cloud Platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published