Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Method

start()

Starts the application as a standalone process with signal handling.
func start() async throws

Discussion

Registers SIGTERM and SIGINT handlers via ServiceGroup and blocks until a shutdown signal is received. This is the primary entry point for most apps:

let app = try await Application()
try routes(app)
try await app.start()