On Fri, Mar 25, 2016 at 5:00 PM, Zachary Ware 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 c
On Fri, Mar 25, 2016 at 3:56 PM, Marko Rauhamaa wrote:
> Ray Cote :
>
>> I’m trying to perform an synchronous task while using asyncio.
>
> You seem to want to do something you shouldn't be doing. Asyncio does
> not tolerate synchronous/blocking calls. You will need to move those in
> separate thr
Ray Cote :
> I’m trying to perform an synchronous task while using asyncio.
You seem to want to do something you shouldn't be doing. Asyncio does
not tolerate synchronous/blocking calls. You will need to move those in
separate threads or processes if you can't turn them into asynchronous
tasks.
On Fri, Mar 25, 2016 at 3:24 PM, Ray Cote
wrote:
> Hello:
>
> I’m trying to perform an synchronous task while using asyncio.
> I understand the solution is to use run_in_executor.
> I’m not clear on how to add this into an already running event loop.
>
> I’ve found lots of examples showing how to
Hello:
I’m trying to perform an synchronous task while using asyncio.
I understand the solution is to use run_in_executor.
I’m not clear on how to add this into an already running event loop.
I’ve found lots of examples showing how to set up a loop and run this, but
I’m blocked in regards to doin