Add support for async ops using async/await
This commit is contained in:
1 parent
07bb095e73
commit
c39622ed1e
5 files changed
+11
-11
No files matched your search
+2
-2
@@ -73,11 +73,11 @@ App.prototype.handleError = function(err) {
|
||||
* @param {boolean} [step] - Set to true if we should only execute one operation instead of the
|
||||
* whole recipe.
|
||||
*/
|
||||
App.prototype.bake = function(step) {
|
||||
App.prototype.bake = async function(step) {
|
||||
var response;
|
||||
|
||||
try {
|
||||
response = this.chef.bake(
|
||||
response = await this.chef.bake(
|
||||
this.getInput(), // The user's input
|
||||
this.getRecipeConfig(), // The configuration of the recipe
|
||||
this.options, // Options set by the user
|
||||
|
||||
Reference in new issue
Block a user