Skip to content

Support FlushAsync in Producer #215

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

Open
DR9885 opened this issue Dec 15, 2022 · 3 comments
Open

Support FlushAsync in Producer #215

DR9885 opened this issue Dec 15, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@DR9885
Copy link

DR9885 commented Dec 15, 2022

Producer can batch messages with SendAndForgetAsync, but has no way to flush.

Example:

        foreach (var message in messages)
        {
            await producer.SendAndForgetAsync(message);
        }
        await producer.FlushAsync()
@Lanayx Lanayx changed the title Producer can batch messages with SendAndForgetAsync, but has no way to flush Support FlushAsync in Producer Dec 15, 2022
@Lanayx
Copy link
Member

Lanayx commented Dec 15, 2022

Java reference

@Lanayx Lanayx added enhancement New feature or request and removed developer needed labels May 18, 2024
@DR9885
Copy link
Author

DR9885 commented Mar 26, 2025

Any updates on this? It would be super helpful if I could force flush as needed, once I've setup a batch and want to save.

Or if application needed to be shutdown, I'd like to force flush out.

@Lanayx
Copy link
Member

Lanayx commented Mar 26, 2025

This enhancement is approved for PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants