swift-server / swift-kafka-client

Apache License 2.0
83 stars 23 forks source link

Make triggerGracefulShutdown() public #130

Closed blindspotbounty closed 1 year ago

blindspotbounty commented 1 year ago

Related to https://github.com/swift-server/swift-kafka-client/issues/125

ServiceLifecycle is not always required by end user, though KafkaConsumer and KafkaProducer can run without it. However, it is impossible (in good manner) stop either of them without public method triggerGracefulShutdown().

This PR allows makes triggerGracefulShutdown() public thus allow to use KafkaConsumer/KafkaProducer directly.

FranzBusch commented 1 year ago

@swift-server-bot test this please