Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polly-js

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polly-js

Transient exception handling

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33K
increased by6.67%
Maintainers
1
Weekly downloads
 
Created
Source

polly-js

Transient exception handling for JavaScript

npm version npm downloads Dependency Status Build Status codecov.io

Polly-js is a library to help developers recover from transient errors using policies like retry or wait and retry.

Polly-js

Usage

Try to load the Google home page and rety twice if it fails

polly
    .retry(2)
    .executeForPromise(function () {
        return requestPromise('http://www.google.com');
    })
    .then(function(result) {
        console.log(result)
    }, function(err) {
        console.error('Failed trying three times', err)
    });

Acknowledgements

The library is based on the Polly NuGet package by Michael Wolfenden

Keywords

FAQs

Package last updated on 28 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc