vandium-io / lambda-tester

Helper for unit testing AWS Lambda functions
BSD 3-Clause "New" or "Revised" License
272 stars 51 forks source link

add async handler function support in run method #42

Closed dtothefp closed 6 years ago

dtothefp commented 6 years ago

Description

Since AWS released lambda supporting Node v8.10.0 handler functions can be async functions that do not have to call the callback https://aws.amazon.com/blogs/compute/node-js-8-10-runtime-now-available-in-aws-lambda/.

This PR is a simplistic representation of how to implement such functionality. I'm not sure if this functionality is already implemented and I just missed it but would like to start a discussion around how to implement this feature if it isn't already.

richardhyatt commented 6 years ago

Adding this into the 3.5.0 release - thanks