Skip to content

Commit

Permalink
docs: Add documentation for finalback argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jan 18, 2022
1 parent d30b8eb commit 0da0031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yapw/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def decorate(
"""
Decode the message ``body`` using the ``decode`` function, and call the consumer ``callback``.
If the ``callback`` function raises an exception, call the ``errback`` function.
If the ``callback`` function raises an exception, call the ``errback`` function. In any case, call the
``finalback`` function after calling the ``callback`` function.
If the ``decode`` function raises an exception, send the SIGUSR2 signal to the main thread.
Expand Down

0 comments on commit 0da0031

Please sign in to comment.