Skip to content

Instantly share code, notes, and snippets.

@swr
Created October 13, 2015 21:30
Show Gist options
  • Save swr/24e5ff66e3aa7a5b7f66 to your computer and use it in GitHub Desktop.
Save swr/24e5ff66e3aa7a5b7f66 to your computer and use it in GitHub Desktop.
add delay to ember data return via RSVP.later
var self = this;
return new Ember.RSVP.Promise((resolve)=> {
Ember.run.later(()=> {
resolve(self.store.findAll('user'));
}, 3000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment