The problem here is that even if I have a coroutine all code between «awaits» is blocking.
``` python async def foo(): data = await connection.get() # it is ok, loop handling request, we waiting # from here for item in data: # this is 10 ** 6 len do_sync_jon(item) # this took 1ms # to here we are blocking loop for 1 second await something_next() ``` _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/BLLU545Y2FLACLMHC6OVXGJ5YUF66E4K/ Code of Conduct: http://python.org/psf/codeofconduct/