(self)
| 26 | |
| 27 | @asyncio.coroutine |
| 28 | def run(self): |
| 29 | asyncio.Task(self.addurls([(self.rooturl, '')])) # Set initial work. |
| 30 | yield from asyncio.sleep(1) |
| 31 | while self.busy: |
| 32 | yield from asyncio.sleep(1) |
| 33 | |
| 34 | self.connector.close() |
| 35 | self.loop.stop() |
| 36 | |
| 37 | @asyncio.coroutine |
| 38 | def addurls(self, urls): |