Skip to content

Async handler support for nodejs8.10 #20

Description

@Enase

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions