Skip to content

Instance Method

shutdownAsync(_:)

Called when the application is about to boot up. This is the asynchronous version of shutdown(_:). When adopting the async APIs you should ensure you provide a compatitble implementation for shutdown(_:) as well if you want to support older users still running in a non-async context Note your application must be running in an asynchronous context and initialised with make(_:_:) for this handler to be called
func shutdownAsync(_ application: Application) async

Default Implementations

LifecycleHandler Implementations

  • shutdownAsync(_:)
    Called when the application is about to boot up. This is the asynchronous version of shutdown(_:). When adopting the async APIs you should ensure you provide a compatitble implementation for shutdown(_:) as well if you want to support older users still running in a non-async context Note your application must be running in an asynchronous context and initialised with make(_:_:) for this handler to be called