Created
April 27, 2016 17:27
-
-
Save wecc/1caf6cd570c70a2e2139f12231de68a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import { task } from 'ember-concurrency'; | |
export default Ember.Controller.extend({ | |
parentTask: task(function* () { | |
yield this.get('childTask').perform(); | |
}), | |
childTask: task(function* () { | |
throw new Error('childTask error'); | |
}), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment