Running and testing async Vapor commands

Running and testing async Vapor commands

The async / await feature is relatively new in Swift and some framework authors haven't converted everything to take advantage of these new keywords. Currently, this is the situation with the Command API in Vapor 4. You can already define async commands, but there's no way to register them using the Vapor framework. Fortunately, there is a relatively straightforward workaround that you can use if you want to execute commands using an asynchronous context. 🔀

[…]