(self, handler)
| 3921 | return asyncio.new_event_loop() |
| 3922 | |
| 3923 | def run(self, handler): |
| 3924 | import asyncio |
| 3925 | from aiohttp_wsgi.wsgi import serve |
| 3926 | self.loop = self.get_event_loop() |
| 3927 | asyncio.set_event_loop(self.loop) |
| 3928 | |
| 3929 | if 'BOTTLE_CHILD' in os.environ: |
| 3930 | import signal |
| 3931 | signal.signal(signal.SIGINT, lambda s, f: self.loop.stop()) |
| 3932 | |
| 3933 | serve(handler, host=self.host, port=self.port) |
| 3934 | |
| 3935 | |
| 3936 | class AiohttpUVLoopServer(AiohttpServer): |
nothing calls this directly
no test coverage detected