Socket
Socket
Sign inDemoInstall

ember-backoff

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-backoff

[![Build Status](https://travis-ci.org/GavinJoyce/ember-backoff.svg)](https://travis-ci.org/GavinJoyce/ember-backoff)


Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

ember-backoff

Build Status

Simple exponential backoff strategy for Ember.js promises


import retryWithBackoff from 'ember-backoff/retry-with-backoff';

export default Em.Route.extend({
  model: function(params) {
    retryWithBackoff(function() {
      return this.store.find('user', 142857); //return any promise here
    }, 5, 100); //retry 5 times: 100ms, 200ms, 400ms, 800ms, 1600ms between tries
  }
});

Questions? Ping me @gavinjoyce

Installation

npm install ember-backoff --save-dev

Outstanding Tasks

  • Better tests using sinon
  • Other strategies: simply retry, fibonacci...
  • High level support for Ember Data and Ember Model

Pull requests are very welcome, thanks.

Development Instructions

  • git clone this repository
  • npm install
  • bower install

Running

sample application

Running Tests

  • ember test
  • ember test --server

Keywords

FAQs

Package last updated on 19 Oct 2014

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