Skip to content

[Doc] Description for Producer SendAsync Needs Updating #23643

Closed
apache/pulsar-client-go
#1485

Description

@youshibin

Search before asking

  • 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.

Any reference?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    doc-required
    on Nov 26, 2024
  2. changed the title [-][Doc] [/-] [+][Doc] Description for Producer SendAsync Needs Updating[/+] on Nov 26, 2024
  3. youshibin commented on Nov 26, 2024

    @youshibin
    Author

    Looking at the internalSendAsync implementation, it would only be blocking if DisableBlockIfQueueFull is set to false and the queue is full.

  4. lhotari commented on Nov 27, 2024

    @lhotari
    Member
  5. lhotari commented on Nov 27, 2024

    @lhotari
    Member

    In addition, it could be useful to check the javadoc too. That would be a PR to apache/pulsar repository.

  6. youshibin commented on Nov 27, 2024

    @youshibin
    Author

    @lhotari

    In addition, it could be useful to check the javadoc too.

    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.

  7. added
    good first issue
    and removed
    good first issue
    on Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc-requiredgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions