Message218205
It was actually through playing with aiohttp that I first hit this issue. I think I originally hit the problem with something like:
import asyncio
import aiohttp
@asyncio.coroutine
def do_work(future):
response = yield from aiohttp.request('get', 'http://google.com')
future.set_result(None)
loop = asyncio.get_event_loop()
future = asyncio.Future()
asyncio.Task(do_work(future))
future.add_done_callback(print)
loop.run_forever() |
|
Date |
User |
Action |
Args |
2014-05-09 22:54:11 | inglesp | set | recipients:
+ inglesp, gvanrossum, tim.peters, pitrou, vstinner, larry, tim.golden, asvetlov, python-dev, Guido.van.Rossum |
2014-05-09 22:54:11 | inglesp | set | messageid: <1399676051.48.0.0611735687072.issue21435@psf.upfronthosting.co.za> |
2014-05-09 22:54:11 | inglesp | link | issue21435 messages |
2014-05-09 22:54:11 | inglesp | create | |
|