Skip to content

Instantly share code, notes, and snippets.

from tornado import httpclient, gen, ioloop, locks
def fetch(urlList, minRequire):
l = locks.Semaphore(len(urlList))
resultList = []
@gen.coroutine
def _fetch():
@gen.coroutine
def __fetch(url):