-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Allow actions to return JS Promise directly #56
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
As mentioned in the discussion on PR #78, we currently plan to revisit this after supporting Node 6 |
Now that we support NodeJS6 we can start work on this. cc @browezilla |
I recommend that we mark deprecated whisk.async() and whisk.done() once we get this in.
|
@tuler this might be a topic that might interest you. |
* disable invoker supervision for crudcontroller * add controller name to required properties * global env variable * remove temporary log message
With Promises now part of the JS standard library (ES6 onwards+), it would be nice to replace the return value for async actions from the whisk function calls to a native Promise. See the example below.
This would have many benefits for the user including allow them to directly return responses from many third-party modules that return Promises without having to add unnecessary boilerplate to handle the response and then return.
to....
The text was updated successfully, but these errors were encountered: