Commit b1ad0433 authored by David Wilson's avatar David Wilson

docs: move Router.route() into Sphinx.

parent cf0668b2
...@@ -340,9 +340,11 @@ Router Class ...@@ -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): ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment