Skip to content

Commit

Permalink
docs: Replaced start_serving with export_to_dbus in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
igo95862 committed Feb 20, 2021
1 parent af58608 commit 668a35c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/asyncio_quick.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Recommended to create connection classes that a subclass of the interface: ::
Serving objects
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

:py:meth:`DbusInterfaceCommonAsync.start_serving` method
:py:meth:`DbusInterfaceCommonAsync.export_to_dbus` method
will export the object to the dbus. After calling it the object
becomes visible on dbus for other processes to call.

Expand All @@ -97,7 +97,7 @@ Example using ExampleInterface from before: ::
# Acquire a name on the bus
await request_default_bus_name_async('org.example.test')
# Start serving at / path
await i.start_serving('/')
i.export_to_dbus('/')

loop.run_until_complete(start())
loop.run_forever()
Expand Down
2 changes: 1 addition & 1 deletion docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ There are 3 files:
# Client will use that name to connect to this server
await request_default_bus_name_async('org.example.test')
# Export the object to dbus
await export_object.start_serving('/')
export_object.export_to_dbus('/')


loop.run_until_complete(startup())
Expand Down

0 comments on commit 668a35c

Please sign in to comment.