[issue30300] asyncio.Controller
Antoine Pitrou
report at bugs.python.org
Sun May 28 07:07:59 EDT 2017
Antoine Pitrou added the comment:
I think the API is too specific. Instead of requiring hostname and port, why not let the user override setup and teardown coroutines?
In your case, this could be:
async def setup(self):
self.server = await self.loop.create_server(...)
async def teardown(self):
await self.server.wait_closed()
----------
nosy: +giampaolo.rodola, pitrou, yselivanov
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30300>
_______________________________________
More information about the Python-bugs-list
mailing list