You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll clean up the documentation. The point I need to make is that the handler should be declared as member variables in your handler class. The Lambda runtime initializes your handler as a singleton and keeps re-using the same object to handle subsequent events - given this behavior, having the handler as a member variables allows us to re-use the same handler across multiple events.
The documentation here says:
But the code sample just below the text doesn't have the
static
modifier. Why? Shouldhandler
be static or not?The text was updated successfully, but these errors were encountered: