fsprojects / pulsar-client-dotnet

Apache Pulsar native client for .NET (C#/F#/VB)
MIT License
293 stars 48 forks source link

Support FlushAsync in Producer #215

Open DR9885 opened 1 year ago

DR9885 commented 1 year ago

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 commented 1 year ago

Java reference