示例#1
0
 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)
示例#2
0
 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()
示例#3
0
文件: task.py 项目: gawel/aiowsgi
 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()