def _makeOne(self, channel=None, request=None): if channel is None: channel = DummyChannel() if request is None: request = DummyParser() from waitress.task import WSGITask return WSGITask(channel, request)
def aiofinish(self, f): app_iter = f.result() self.aioexecute(app_iter) Task.finish(self) if self.close_on_finish: # pragma: no cover self.channel.transport.close()