@brief Wait for all rd_kafka_t objects to be destroyed.
Returns 0 if all kafka objects are now destroyed, or -1 if the
timeout was reached.
Since rd_kafka_destroy() is an asynch operation the
rd_kafka_wait_destroyed() function can be used for applications where
a clean shutdown is required.
@brief Wait for all rd_kafka_t objects to be destroyed.
Returns 0 if all kafka objects are now destroyed, or -1 if the timeout was reached. Since rd_kafka_destroy() is an asynch operation the rd_kafka_wait_destroyed() function can be used for applications where a clean shutdown is required.