Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ember discuss question
import { task } from 'ember-concurrency';
export default Controller.extend({
setup: task(function*() {
yield delay(6000);
this.set('model', { message: '1' });
yield delay(4000);
this.set('model', { message: '2' });
yield delay(2000);
this.set('model', { message: '3' });
})
})
export default Route.extend({
setupController(controller) {
this._super(...arguments);
controller.get('setup').perform();
}
});
{{model.message}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.