[issue29558] Provide run_until_complete inside loop

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Awaiting a future from blocking code which in turn is executed from async code is very dangerous idea -- it will block other async code execution. The feature will be never implemented as well as nested loops, sorry. Closing.

[issue29558] Provide run_until_complete inside loop

2017-02-15 Thread Javier Domingo
Javier Domingo added the comment: Yes, indeed it is. Would it be possible to reconsider this functionality? It plays a key role when trying to rewrite full applications to async. Rewriting the full stack of libraries at once is impossible, but the patching can easily be done in many cases.

[issue29558] Provide run_until_complete inside loop

2017-02-14 Thread Martin Panter
Martin Panter added the comment: Sounds related to Issue 22239 -- nosy: +martin.panter ___ Python tracker ___

[issue29558] Provide run_until_complete inside loop

2017-02-14 Thread Javier Domingo
New submission from Javier Domingo: The current architecture of asyncio makes it really hard to combine both async and sync code. When porting a Thread based application to asyncio, the first step is usually to start merging threads to the main loop, by using `run_coroutine_threadsafe`. This