Message294638
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() |
|
Date |
User |
Action |
Args |
2017-05-28 11:07:59 | pitrou | set | recipients:
+ pitrou, barry, vstinner, giampaolo.rodola, njs, yselivanov |
2017-05-28 11:07:59 | pitrou | set | messageid: <1495969679.76.0.382260072605.issue30300@psf.upfronthosting.co.za> |
2017-05-28 11:07:59 | pitrou | link | issue30300 messages |
2017-05-28 11:07:59 | pitrou | create | |
|