Skip to content

Commit

Permalink
Merge pull request #818 from crossbario/pr-816-additions
Browse files Browse the repository at this point in the history
Pr 816 additions
  • Loading branch information
oberstet committed Apr 15, 2017
2 parents 9b064f7 + 9c2aadb commit b3ddee0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autobahn/asyncio/wamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def stop(self):
@public
def run(self, make, start_loop=True):
"""
Run the application component.
Run the application component. Under the hood, this runs the event
loop (unless `start_loop=False` is passed) so won't return
until the program is done.
:param make: A factory that produces instances of :class:`autobahn.asyncio.wamp.ApplicationSession`
when called with an instance of :class:`autobahn.wamp.types.ComponentConfig`.
Expand All @@ -166,6 +168,11 @@ def run(self, make, start_loop=True):
:param start_loop: When ``True`` (the default) this method
start a new asyncio loop.
:type start_loop: bool
:returns: None is returned, unless you specify
`start_loop=False` in which case the coroutine from calling
`loop.create_connection()` is returned. This will yield the
(transport, protocol) pair.
"""
if callable(make):
def create():
Expand Down

0 comments on commit b3ddee0

Please sign in to comment.