Async handler support for nodejs8.10
Enase opened this issue · 1 comments
Enase commented
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