remove loop as argument and update examples

This commit is contained in:
Raphael Deem
2017-01-21 18:26:32 -08:00
parent 2774414f9e
commit d52f5f0b09
9 changed files with 109 additions and 124 deletions

View File

@@ -289,7 +289,7 @@ def serve(host, port, request_handler, error_handler, before_start=None,
:param protocol: Subclass of asyncio protocol class
:return: Nothing
"""
loop = loop or async_loop.new_event_loop()
loop = async_loop.new_event_loop()
asyncio.set_event_loop(loop)
if debug: