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
motivation: make shutdown easier to use
changes:
* override shutdown to use the offloadQueue to perform syncShutdown
* add empty syncShutdown that can be implmented by the concrete Lambda function
/// Clean up the `LambdaHandler` resources synchronously.
80
+
/// Concrete Lambda handlers implement this method to shutdown resources like `HTTPClient`s and database connections.
81
+
func syncShutdown()throws{
82
+
// noop
83
+
}
84
+
}
85
+
65
86
// MARK: - EventLoopLambdaHandler
66
87
67
88
/// Strongly typed, `EventLoopFuture` based processing protocol for a Lambda that takes a user defined `In` and returns a user defined `Out` asynchronously.
@@ -175,7 +196,7 @@ public protocol ByteBufferLambdaHandler {
0 commit comments