Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

Conversation

wbarnha
Copy link
Collaborator

@wbarnha wbarnha commented Mar 8, 2024

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

@antonagestam
Copy link

Is it possible to add a regression test for this?

@wbarnha
Copy link
Collaborator Author

wbarnha commented Mar 16, 2024

regression tes

My thoughts as well, I'm wondering if the default behavior of not flushing was retained for a particular reason.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants