On Fri, Mar 25, 2016 at 5:00 PM, Zachary Ware <zachary.ware+pyl...@gmail.com > wrote:
> I'm assuming you're doing `await process_request()` elsewhere, which > is what's producing your error: you're trying to start the loop within > a coroutine running on that loop. loop.run_in_executor() returns a > Future just like any other coroutine, so process_request just needs > this: > > async def process_request(): > loop = asyncio.get_event_loop() > results = await loop.run_in_executor(None, blocking_func, 'hello') > Yes, that was precisely the directive I needed. This is now working perfectly. Thanks —Ray -- Raymond Cote, President voice: +1.603.924.6079 email: rgac...@appropriatesolutions.com skype: ray.cote -- https://mail.python.org/mailman/listinfo/python-list