Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flush before close #149

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

wbarnha
Copy link
Owner

@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
Owner 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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants