We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a8a56f commit b4033b5Copy full SHA for b4033b5
server.go
@@ -228,6 +228,10 @@ func runShutdownHooks() {
228
INFO.Println("Done")
229
}
230
231
+func OnAppShutdown(f func()) {
232
+ shutdownHooks = append(shutdownHooks, f)
233
+}
234
+
235
func StopServer() {
236
INFO.Println("Server shutdown in progress")
237
stopSig <- 1
0 commit comments