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()
.
- New
runningServer
property onApplication
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 onApplication
, 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