-
Notifications
You must be signed in to change notification settings - Fork 113
update and add examples to new APIs #228
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
update and add examples to new APIs #228
Conversation
9ef3ddb
to
bb94234
Compare
What's the benefit of moving the String and Codable sample out of the main |
its much less noisy. these are really just samples and so they should not be part of the main package. One area where this causes headache is that tools that scan packages (like package collections and package indexes) and cannot tell that these modules are "not important" so they show up as valid modules you may want to use, which his not the intent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much neater!
@@ -19,7 +19,6 @@ import NIO | |||
// use this example which is more performant. | |||
// `EventLoopLambdaHandler` does not offload the Lambda processing to a separate thread | |||
// while the closure-based handlers do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the description here should also be modified?
motivation: keep code up to date with API changes changes: * take advantage of @main where possible * move the top level Sample code to a new "Simple" examples subdirectory * add a sample that demonstrates how to test a lambda now that SwiftPM can test executables directly * update the test-sample docker setup to build & test th new samples * fix a few typos and In/Out typealias left overs
bb94234
to
e861641
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shall encourage AWSLambdaRuntimeCore
with NIOCore
with EventLoopLambdaHandler
, and AWSLambdaRuntime
with LambdaHandler
?
e7c327f
to
bd39461
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Much cleaner! Thanks!
motivation: keep code up to date with API changes
changes: