MCPcopy
hub / github.com/aio-libs/aiohttp / run

Method run

examples/crawl.py:28–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers 1

mainFunction · 0.95

Calls 3

addurlsMethod · 0.95
closeMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected