Skip to content

Implement Swift Service Lifecycle #82

@thoven87

Description

@thoven87

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:

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.

Contribution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalEnhancement idea or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions