Skip to content

Enable Asynchronous Handlers #20

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

Closed
Kab1r opened this issue Apr 21, 2020 · 4 comments
Closed

Enable Asynchronous Handlers #20

Kab1r opened this issue Apr 21, 2020 · 4 comments

Comments

@Kab1r
Copy link

Kab1r commented Apr 21, 2020

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.

@mike-engel
Copy link
Collaborator

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

@srounce
Copy link
Contributor

srounce commented Oct 4, 2020

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.

@leerob
Copy link
Contributor

leerob commented Aug 25, 2021

Yay, this is supported now!

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

@leerob leerob changed the title Asynchronous Handler Enable Asynchronous Handlers Aug 25, 2021
@ecklf
Copy link
Collaborator

ecklf commented Mar 13, 2023

Hey we released a new runtime in #80 which should now enable this. Happy about every feedback.

@ecklf ecklf closed this as completed Mar 13, 2023
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

5 participants