kafka-python icon indicating copy to clipboard operation
kafka-python copied to clipboard

Flush before close

Open moshez opened this issue 4 years ago • 0 comments

If there are any messages pending, flush them before doing anything else. This makes it more likely that callbacks have a chance to run before the producer is closed, which can help in corner cases (like when callbacks want to send another message)


This change is Reviewable

moshez avatar Mar 17 '21 20:03 moshez