Adding run_in_executor task to already existing loop.

Marko Rauhamaa marko at pacujo.net
Fri Mar 25 16:56:03 EDT 2016


Ray Cote <rgacote at appropriatesolutions.com>:

> 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.


Marko



More information about the Python-list mailing list