You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Doc] Description for Producer SendAsync Needs Updating #23643
I searched in the issues and found nothing similar.
What issue do you find in Pulsar docs?
The description for SendAsync implies that it is a blocking operation, but asynchronous calls should be non-blocking and occur in a background thread.
What is your suggestion?
The SendAsync method in Pulsar is designed to send messages asynchronously, allowing the application to continue processing other tasks without waiting for the send operation to complete. A user-defined callback function is invoked upon the completion of the send operation which can be used to track the success / failure of the send operation.
Activity
[-][Doc] [/-][+][Doc] Description for Producer SendAsync Needs Updating[/+]youshibin commentedon Nov 26, 2024
Looking at the
internalSendAsyncimplementation, it would only be blocking ifDisableBlockIfQueueFullis set tofalseand the queue is full.lhotari commentedon Nov 27, 2024
@jasonyunicorn please go ahead with the PR to https://github.com/apache/pulsar-site to update the docs.
lhotari commentedon Nov 27, 2024
In addition, it could be useful to check the javadoc too. That would be a PR to apache/pulsar repository.
youshibin commentedon Nov 27, 2024
@lhotari
I didn't find much in terms of a function description in the javadocs, but maybe this isn't the right place?
However, there is a good description in the Go docs for
SendAsync, which I copied.docs(producer): clarify SendAsync description