rust icon indicating copy to clipboard operation
rust copied to clipboard

Enable Asynchronous Handlers

Open Kab1r opened this issue 5 years ago • 3 comments

It would be nice if we could have an asynchronous handler for a function. I know you can do this with the Node API.

Ideally, I should be able to pass a handler function that returns a future into the lambda macro.

Alternatively, there could be a separate macro for asynchronous handlers.

Kab1r avatar Apr 21 '20 20:04 Kab1r

@KabirKwatra I'll take a look at this when I get a chance, but if you have ideas, PRs are welcome

mike-engel avatar Apr 27 '20 07:04 mike-engel

awslabs/aws-lambda-rust-runtime supports this already on the master branch but they haven't cut a release because reasons. The current master branch API has changed since 0.2 but any changes that may need to happen minimal, the API surface of now_lambda should be unaffected.

srounce avatar Oct 04 '20 15:10 srounce

Yay, this is supported now!

https://github.com/awslabs/aws-lambda-rust-runtime/releases

leerob avatar Aug 25 '21 02:08 leerob