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

Async handler support for nodejs8.10 #20

Closed
Enase opened this issue Apr 26, 2018 · 1 comment
Closed

Async handler support for nodejs8.10 #20

Enase opened this issue Apr 26, 2018 · 1 comment

Comments

@Enase
Copy link

Enase commented Apr 26, 2018

Unfortunately wrapper doesn't support this, see:

If you want to use the async feature provided by the v8.10 runtime, consider the following code sample:

exports.myHandler = async function(event, context) {
   console.log("value1 = " + event.key1);
   console.log("value2 = " + event.key2);  
   return "some success message”;
   // or 
   // throw new Error(“some error type”); 
}  

https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html

@Enase
Copy link
Author

Enase commented May 7, 2018

fixed here #23

@Enase Enase closed this as completed May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant