Skip to content

Commit

Permalink
Document the requirement for the send_async method
Browse files Browse the repository at this point in the history
See apache#184

It should be documented that the callback should not throw any exception
when passed to `send_async`.
  • Loading branch information
BewareMyPower committed Dec 28, 2023
1 parent daabc67 commit 571ad81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pulsar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,8 @@ def send_async(self, content, callback,
--------
The ``callback`` will be invoked once the message has been acknowledged by the broker.
Users are responsible to handle the exception inside the callback. If any exception was
thrown from the callback, the process would terminate immediately.
.. code-block:: python
Expand Down

0 comments on commit 571ad81

Please sign in to comment.