docs: move Router.route() into Sphinx.

wip-fakessh-exit-status
David Wilson 7 years ago
parent cf0668b2b1
commit b1ad04330b

@ -340,9 +340,11 @@ Router Class
.. method:: route(msg)
Arrange for `msg` to be forwarded towards its destination. If its
destination is the local context, then arrange for it to be dispatched
using the local handlers.
Arrange for the :py:class:`Message` `msg` to be delivered to its
destination using any relevant downstream context, or if none is found,
by forwarding the message upstream towards the master context. If `msg`
is destined for the local context, it is dispatched using the handles
registered with :py:meth:`add_handler`.
This may be called from any thread.

@ -914,13 +914,6 @@ class Router(object):
stream.send(msg)
def route(self, msg):
"""
Arrange for the :py:class:`Message` `msg` to be delivered to its
destination using any relevant downstream context, or if none is found,
by forwarding the message upstream towards the master context. If `msg`
is destined for the local context, it is dispatched using the handles
registered with :py:meth:`add_handler`.
"""
self.broker.defer(self._async_route, msg)

Loading…
Cancel
Save