@brief Commit offsets on broker for the provided list of partitions.
\p offsets should contain \c topic, \c partition, \c offset and possibly
\c metadata.
If \p offsets is NULL the current partition assignment will be used instead.
If \p async is false this operation will block until the broker offset commit
is done, returning the resulting success or error code.
If a rd_kafka_conf_set_offset_commit_cb() offset commit callback has been
configured:
* if async: callback will be enqueued for a future call to rd_kafka_poll().
* if !async: callback will be called from rd_kafka_commit()
@brief Commit offsets on broker for the provided list of partitions.
\p offsets should contain \c topic, \c partition, \c offset and possibly \c metadata. If \p offsets is NULL the current partition assignment will be used instead.
If \p async is false this operation will block until the broker offset commit is done, returning the resulting success or error code.
If a rd_kafka_conf_set_offset_commit_cb() offset commit callback has been configured: * if async: callback will be enqueued for a future call to rd_kafka_poll(). * if !async: callback will be called from rd_kafka_commit()