]> granicus.if.org Git - python/commit
bpo-32662: Implement Server.start_serving() and Server.serve_forever() (#5312)
authorYury Selivanov <yury@magic.io>
Thu, 25 Jan 2018 23:08:09 +0000 (18:08 -0500)
committerGitHub <noreply@github.com>
Thu, 25 Jan 2018 23:08:09 +0000 (18:08 -0500)
commitc9070d03f5169ad6e171e641b7fa8feab18bf229
tree4bad875e6f68874a980e5289a45893f4335c5afb
parent1aa094f74039cd20fdc7df56c68f6848c18ce4dd
bpo-32662: Implement Server.start_serving() and Server.serve_forever() (#5312)

* bpo-32662: Implement Server.start_serving() and Server.serve_forever()

New methods:

* Server.start_serving(),
* Server.serve_forever(), and
* Server.is_serving().

Add 'start_serving' keyword parameter to loop.create_server() and
loop.create_unix_server().
Doc/library/asyncio-eventloop.rst
Lib/asyncio/base_events.py
Lib/asyncio/events.py
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_server.py [new file with mode: 0644]
Misc/NEWS.d/next/Library/2018-01-25-01-45-30.bpo-32662.oabhd8.rst [new file with mode: 0644]