Wait for all rd_kafka_t objects to be destroyed.
0 if all kafka objects are now destroyed, or -1 if the timeout was reached. Since RdKafka handle deletion is an asynch operation the \p wait_destroyed() function can be used for applications where a clean shutdown is required.
See Implementation
Wait for all rd_kafka_t objects to be destroyed.
0 if all kafka objects are now destroyed, or -1 if the timeout was reached. Since RdKafka handle deletion is an asynch operation the \p wait_destroyed() function can be used for applications where a clean shutdown is required.