[issue43019] wait_for(to_thread)) does not work as expected. Extra documentation or fix needed.

2022-03-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Threads are not interruptable in Python. The same for concurrent.future executor. asyncio and `wait_for` is not special. I'm not sure should we document it and *if* yes -- where should we do it? Adding a note to every function could be cumbersome.

[issue43019] wait_for(to_thread)) does not work as expected. Extra documentation or fix needed.

2021-01-24 Thread Felipe Faria
New submission from Felipe Faria : Consider the following: ``` import asyncio import time async def async_test(): while True: await asyncio.sleep(1) print("in here - async") def sync_test(): while True: time.sleep(1) print("in here - sync") async def