You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `KafkaConsumer.commitAsync`
Motivation:
Having `KafkaConsumer.commitSync` be `async` is not always convenient as
it suspends the `KafkaConsumer.messages` read loop and can therefore
lower throughput.
This PR introduces a new method `KafkaConsumer.commitAsync` that allows
users who don't care about the result of the `commit` to commit in a
"fire-and-forget" manner.
Modifications:
* new method `KafkaConsumer.commitAsync`
* rename `KafkaConsumer.StateMachine.commitSync` to
`KafkaConsumer.StateMachine.commit` to serve both `commitSync` and
`commitAsync`
* add new test for `KafkaConsumer.commitAsync`
* Review Franz
Modifications:
* `KafkaConsumer`:
* rename `commitSync(_:)` -> `commit(_:)`
* rename `commitAsync(_:)` -> `scheduleCommit(_:)`
* `RDKafkaClient`:
* rename `commitSync(_:)` -> `commit(_:)`
* rename `commitAsync(_:)` -> `scheduleCommit(_:)`
0 commit comments