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) .. method:: route(msg)
Arrange for `msg` to be forwarded towards its destination. If its Arrange for the :py:class:`Message` `msg` to be delivered to its
destination is the local context, then arrange for it to be dispatched destination using any relevant downstream context, or if none is found,
using the local handlers. 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. This may be called from any thread.

@ -914,13 +914,6 @@ class Router(object):
stream.send(msg) stream.send(msg)
def route(self, 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) self.broker.defer(self._async_route, msg)

Loading…
Cancel
Save