Displaying 1 to 19 from 19 results

retry - A simple, stateless, functional mechanism to perform actions repetitively until successful.

  •    Go

A simple, stateless, functional mechanism to perform actions repetitively until successful. This project is currently in "pre-release". While the code is heavily tested, the API may change. Vendor (commit or lock) this dependency if you plan on using it.

node-backoff - Fibonacci and exponential backoff for Node.js

  •    Javascript

Fibonacci and exponential backoffs for Node.js. The usual way to instantiate a new Backoff object is to use one predefined factory method: backoff.fibonacci([options]), backoff.exponential([options]).

backoff - Python library providing function decorators for configurable backoff and retry

  •    Python

This module provides function decorators which can be used to wrap a function such that it will be retried until some condition is met. It is meant to be of use when accessing unreliable resources with the potential for intermittent failures i.e. network resources and external APIs. Somewhat more generally, it may also be of use for dynamically polling resources for externally generated content.Decorators support both regular functions for synchronous code and asyncio's coroutines for asynchronous code.

recovery - Recover from a network failure using randomized exponential backoff.

  •    Javascript

Recovery provides randomized exponential back off for reconnection attempts. It allows you to recover the connection in the most optimal way (for both server and client). The exponential back off is randomized to prevent a DDoS like attack on your server when it's restarted, spreading the reconnection attempts instead of having all your connections attempt to reconnect at exactly the same time.The code base of this module was originally written for Primus but has been extracted as separate module. It has been thoroughly tested and it's written with love <3.




rng-js - JavaScript seedable random number generation tools.

  •    Javascript

The generator below, seeded with "Example" will produce the same values as below for each of these random number distributions across all browsers. The underlying algorithm is RC4 and uniform number generation is about 10x slower than Math.random in V8. What you get in exchange for that is a seedable generator and additional random distributions (see example). You can still get speed and these additional distributions by using Math.random as the core uniform number generator.

p-retry - Retry a promise-returning or async function

  •    Javascript

It does exponential backoff and supports custom retry strategies for failed operations.Returns a Promise that is fulfilled when calling input returns a fulfilled promise. If calling input returns a rejected promise, input is called again until the max retries are reached, it then rejects with the last rejection reason.

safe-regex - detect possibly catastrophic, exponential-time regular expressions

  •    Javascript

WARNING: This module merely seems to work given all the catastrophic regular expressions I could find scouring the internet, but I don't have enough of a background in automata to be absolutely sure that this module will catch all exponential-time cases.Return a boolean ok whether or not the regex re is safe and not possibly catastrophic.


back - Simple exponential backoff module

  •    Javascript

A simple module to be used for creating exponentially weighted backoff attempts. Originally extracted from Primus. NOTICE If you were a pre-1.0.0 back user, the API has changed to what is found below. If you do not like this slightly different abstraction and would prefer the former, slightly simpler API, it is still available with require('back/reconnect').

ember-concurrency-retryable - An Ember addon that adds retry strategies and a task modifier for automatically retrying ember-concurrency tasks

  •    Javascript

An Ember addon that adds retry strategies and a task modifier for automatically retrying ember-concurrency tasks. For more information on using ember-cli, visit https://ember-cli.com/.

tryer - Conditional and repeated function invocation for node and browser.

  •    Javascript

Because everyone loves a tryer! Conditional and repeated function invocation for node and browser. Sometimes, you want to defer calling a function until a certain pre-requisite condition is met. Other times, you want to call a function repeatedly until some post-requisite condition is satisfied. Occasionally, you might even want to do both for the same function.

exponential-moving-average - Calculate an exponential moving average from an array of numbers.

  •    Javascript

Calculate an exponential moving average from an array of numbers. Options may be passed as an object or as a number to specify only the range to use.

simple-backoff - Simple backoff calculation with multiple strategies

  •    Javascript

Calculates the delay values for various backoff mechanisms. Like backoff, except it doesn't wrap everything up in an arbitrary API. Like backo/backo2, except it provides three choices of algorithm. The values shown above are the defaults.

prob.js - Generate random numbers from different probability distributions.

  •    Javascript

Generate random numbers from different probability distributions. Demo. Internally Prob.js uses Mersenne Twister provided by random-js. This can be overridden by providing the src argument when generating a number. src is expected to be a function that when called returns a signed integer uniformly in the range [-2^31,2^31).

backoff-rxjs - A collection of helpful RxJS operators to deal with backoff strategies (like exponential backoff)

  •    TypeScript

intervalBackoff works similiarly to interval except that it doubles the delay between emissions every time.

Xb - a simple js library for backoff callbacks

  •    Javascript

Hello! I'm Xb, a tiny backoff library for javascript. Suppose you want to poll a server for info. You could do a setTimeout and ask the server if there is something new every N seconds or milliseconds.

random - The most RANDOM module on npm! 😜

  •    Javascript

Seedable random number generator supporting many common distributions. All distribution methods return a thunk (function with no params), which will return a series of independent, identically distributed random variables from the specified distribution.

pretty-num - Lightweight module to convert number to a pretty human readable string.

  •    Javascript

Lightweight module to convert number to a pretty human readable string. Number of decimal digits to keep when rounding. Pass falsey value to not change precision.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.