github vapor/vapor 4.0.0-beta.3.13
Application.run() no longer calls shutdown

latest releases: 4.95.0, 4.94.1, 4.94.0...
pre-release4 years ago

Applications are expected to defer application shutdown after initialization:

let app = try Application(.detect())
defer { app.shutdown() }

This prevents scenarios where an error is thrown before the app.shutdown() defer block is called which results in an "Application did not shutdown" assertion.

Because of this, Application.run() will no longer attempt to call shutdown() which would result in a double shutdown.

Don't miss a new vapor release

NewReleases is sending notifications on new releases.