def t0(): c = http_client ('127.0.0.1', 80) l = [ c.send_request ('GET', '/postgresql/html/', {}, content=None, force=True) for x in range (10) ] for req in l: req.wait() W ('%s\n' % (req.response,))
def t1(): c = http_client ('127.0.0.1', 80) rl = coro.in_parallel ([(c.GET, ('/postgresql/html/',))] * 10) for x in rl: W ('%s\n' % (x.response,)) return rl