Ember-backoff
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);
}, 5, 100);
}
});
Questions? Ping me @gavinjoyce
Outstanding Tasks
Pull requests are very welcome, thanks.
Installation
git clone
this repositorynpm install
bower install
Running
Running Tests
ember test
ember test --server
Building
For more information on using ember-cli, visit http://www.ember-cli.com/.