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.
Related to https://github.com/swift-server/swift-kafka-client/issues/125
ServiceLifecycle is not always required by end user, though
KafkaConsumer
andKafkaProducer
can run without it. However, it is impossible (in good manner) stop either of them without public methodtriggerGracefulShutdown()
.This PR allows makes
triggerGracefulShutdown()
public thus allow to useKafkaConsumer
/KafkaProducer
directly.