Skip to content
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

lambda.Start documentation does not mention lambda.Handler interface #566

Open
rittneje opened this issue Jul 15, 2024 · 0 comments
Open

Comments

@rittneje
Copy link
Contributor

rittneje commented Jul 15, 2024

Currently, the documentation for lambda.Start states that its parameter needs to be a function matching one of the given signatures.

However, it seems it can also accept an instance of the lambda.Handler interface, as revealed by both the implementation and deprecation comment on lambda.StartHandler.

Please fix the documentation for lambda.Start accordingly.

I would also like to point out that deprecating lambda.StartHandler was a bad idea, because it means we no longer have any compile-time safety.

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

1 participant