Managing the lifecycle of the NATS client with a service such as Hummingbird would be as simple as follows:
let natsClientService = NatsClientOptions().url(URL(string: "nats://localhost:4222")!).build()
let app = Application(....)
app.addService(natsClientService)
Users would not have to worry about managing shutdown and such.
Proposed change
I think it would be great to implement Swift Service Life Cycle
Use case
Managing the lifecycle of the NATS client with a service such as Hummingbird would be as simple as follows:
Users would not have to worry about managing shutdown and such.
Contribution
No response