Instance Method (Default implementation)vapor 4.114.1Vapor
shutdown(_:)
LifecycleHandler.swift:61func shutdown(_ application: Application)
func shutdown(_ application: Application)
s5Vapor16LifecycleHandlerPAAE8shutdownyyAA11ApplicationCF
What are these?9NSSK
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol LifecycleHandler : Sendable
Provides a way to hook into lifecycle events of a Vapor application. You can register your handlers with the Application
to be notified when the application is about to start up, has started up and is about to shutdown
final class Application
Core type representing a Vapor application.
func shutdown(_ application: Application)
Called when the application is about to shutdown
func didBoot(_ application: Application) throws
func didBootAsync(_ application: Application) async throws
func shutdownAsync(_ application: Application) async
func willBoot(_ application: Application) throws
func willBootAsync(_ application: Application) async throws