Skip to content

Commit

Permalink
docs: Fix catch_anywhere example missing the catch_anywhere call
Browse files Browse the repository at this point in the history
Simply calling from the class does not make it `catch_anywhere`.
  • Loading branch information
igo95862 committed Dec 30, 2023
1 parent 1708748 commit 63d77b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/asyncio_quick.rst
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ the service name must be provided.

Example::

async for path, x in ExampleInterface.name_changed('org.example.test'):
async for path, x in ExampleInterface.name_changed.catch_anywhere('org.example.test'):
print(f"On {path} caught: {x}")

Subclass Overrides
Expand Down

0 comments on commit 63d77b4

Please sign in to comment.