github vapor/vapor 3.0.0-rc.2.2
Vapor 3.0.0 RC 2.2

latest releases: 4.96.0, 4.95.0, 4.94.1...
pre-release6 years ago

New:

  • New asynchronous methods for booting and running Application.
    • asyncBoot(config:environment:services) -> Future<Void>
    • asyncRun() -> Future<Void>

The synchronous init(...) and run() methods on Application will now forward to the asynchronous methods and call .wait().

This new property allows you to stop the currently running HTTP server, or wait for it to close. This is useful in conjunction with asyncRun() which will not wait indefinitely for the server. Note: run() will still continue to wait for the server to close before exiting.

See RunningServer for more information.

  • Commands now run asynchronously.
  • environment property is now mutable on Application, allowing for providers to detect and mutate the environment.

API Docs:
https://api.vapor.codes/vapor/3.0.0-rc.2.2/Vapor/index.html

Milestone:
3.0.0-rc.2.2

Don't miss a new vapor release

NewReleases is sending notifications on new releases.