Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handler.js can return a Promise #92

Closed
padiazg opened this issue Oct 5, 2018 · 0 comments · Fixed by #172 · May be fixed by #94
Closed

handler.js can return a Promise #92

padiazg opened this issue Oct 5, 2018 · 0 comments · Fixed by #172 · May be fixed by #94

Comments

@padiazg
Copy link
Contributor

padiazg commented Oct 5, 2018

We should be able to handle when the handler.js defined by the user returns a promise in turn of a final value.

Expected Behaviour

The handler.js could return either a final value or a promise, and we should resolve it if so to get the value to return.

Current Behaviour

Now the handler.js exports a function that receives a callback to return a resulting value, with this improvement the user could return also a promise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant